From 0597392e15136a966aa947d682f628a1ca4238a6 Mon Sep 17 00:00:00 2001 From: Steven Atkinson Date: Mon, 2 Jan 2023 20:10:45 -0800 Subject: [PATCH] Unset dsp paths when objects are removed --- NeuralAmpModeler/NeuralAmpModeler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NeuralAmpModeler/NeuralAmpModeler.cpp b/NeuralAmpModeler/NeuralAmpModeler.cpp index 2bc4f205..4f1f8879 100644 --- a/NeuralAmpModeler/NeuralAmpModeler.cpp +++ b/NeuralAmpModeler/NeuralAmpModeler.cpp @@ -382,11 +382,13 @@ void NeuralAmpModeler::_ApplyDSPStaging() // Remove marked modules if (this->mFlagRemoveDSP) { this->mDSP = nullptr; + this->mModelPath.Set(""); this->_UnsetModelMsg(); this->mFlagRemoveDSP = false; } if (this->mFlagRemoveIR) { this->mIR = nullptr; + this->mIRFileName.Set(""); this->_UnsetIRMsg(); this->mFlagRemoveIR = false; }