diff --git a/src/musredit_qt5/mupp/PmuppGui.cpp b/src/musredit_qt5/mupp/PmuppGui.cpp index f7a15f40..c3d425d2 100644 --- a/src/musredit_qt5/mupp/PmuppGui.cpp +++ b/src/musredit_qt5/mupp/PmuppGui.cpp @@ -1314,7 +1314,7 @@ void PmuppGui::addVar() // call variable dialog if (fVarDlg != nullptr) { delete fVarDlg; - fVarDlg == nullptr; + fVarDlg = nullptr; } fVarDlg = new PVarDialog(collection_list, fDarkTheme); connect(fVarDlg, SIGNAL(check_request(QString,QVector)), this, SLOT(check(QString,QVector)));