fixed a bug in the mupp gui refresh of a collection.
This commit is contained in:
parent
432c0bd6ec
commit
a96f1b35d7
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user