diff --git a/src/musredit_qt5/mupp/PmuppGui.cpp b/src/musredit_qt5/mupp/PmuppGui.cpp index 0a186853..8ec7900a 100644 --- a/src/musredit_qt5/mupp/PmuppGui.cpp +++ b/src/musredit_qt5/mupp/PmuppGui.cpp @@ -1361,7 +1361,18 @@ void PmuppGui::add(QString varStr, QVector idx) parseErrMsgDlg(); return; } - fVarHandler.push_back(var); // collect all valid variables + // check if variable name for the given collection already exists + int var_idx=-1; + for (int k=0; k