From a96f1b35d71d333423ddb9ccb66a2150a7c1e22e Mon Sep 17 00:00:00 2001 From: Andreas Suter Date: Sat, 21 Sep 2024 13:02:31 +0200 Subject: [PATCH] fixed a bug in the mupp gui refresh of a collection. --- src/musredit_qt5/mupp/PmuppGui.cpp | 5 +++-- src/musredit_qt6/mupp/PmuppGui.cpp | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) 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; }