diff --git a/src/musredit_qt5/mupp/PmuppGui.cpp b/src/musredit_qt5/mupp/PmuppGui.cpp index 159307a2..8a154790 100644 --- a/src/musredit_qt5/mupp/PmuppGui.cpp +++ b/src/musredit_qt5/mupp/PmuppGui.cpp @@ -985,7 +985,8 @@ void PmuppGui::refresh() for (int i=0; iGetNoOfCollections(); i++) { if (fParamDataHandler->GetCollection(i)->GetName() == label) { // found collection - pathName = fParamDataHandler->GetCollection(i)->GetPathName(); + QDir dir(QDir::currentPath()); + pathName = dir.path() + "/" + fParamDataHandler->GetCollection(i)->GetName(); collIdx = i; break; } @@ -1014,7 +1015,7 @@ void PmuppGui::refresh() } } else { QMessageBox::critical(this, "ERROR - REFRESH", - QString("Couldn't refresh %1").arg(fParamDataHandler->GetCollection(collIdx)->GetName())); + QString("Couldn't refresh %1?!").arg(fParamDataHandler->GetCollection(collIdx)->GetName())); return; } diff --git a/src/musredit_qt6/mupp/PmuppGui.cpp b/src/musredit_qt6/mupp/PmuppGui.cpp index 7c456fd8..d44c1b61 100644 --- a/src/musredit_qt6/mupp/PmuppGui.cpp +++ b/src/musredit_qt6/mupp/PmuppGui.cpp @@ -973,7 +973,8 @@ void PmuppGui::refresh() for (int i=0; iGetNoOfCollections(); i++) { if (fParamDataHandler->GetCollection(i)->GetName() == label) { // found collection - pathName = fParamDataHandler->GetCollection(i)->GetPathName(); + QDir dir(QDir::currentPath()); + pathName = dir.path() + "/" + fParamDataHandler->GetCollection(i)->GetName(); collIdx = i; break; }