fixed a bug in the mupp gui refresh of a collection.

This commit is contained in:
suter_a 2024-09-21 13:02:31 +02:00
parent 432c0bd6ec
commit a96f1b35d7
2 changed files with 5 additions and 3 deletions

View File

@ -985,7 +985,8 @@ void PmuppGui::refresh()
for (int i=0; i<fParamDataHandler->GetNoOfCollections(); 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;
}

View File

@ -973,7 +973,8 @@ void PmuppGui::refresh()
for (int i=0; i<fParamDataHandler->GetNoOfCollections(); 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;
}