commit 0597392e15136a966aa947d682f628a1ca4238a6
parent fa75f12fc4a8900783c41efeca1923104a511084
Author: Steven Atkinson <steven@atkinson.mn>
Date: Mon, 2 Jan 2023 20:10:18 -0800
Unset dsp paths when objects are removed
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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;
}