fixed a bug in the mupp gui refresh of a collection.
This commit is contained in:
parent
7838901fbe
commit
d1cd63dcb0
@ -985,7 +985,8 @@ void PmuppGui::refresh()
|
|||||||
|
|
||||||
for (int i=0; i<fParamDataHandler->GetNoOfCollections(); i++) {
|
for (int i=0; i<fParamDataHandler->GetNoOfCollections(); i++) {
|
||||||
if (fParamDataHandler->GetCollection(i)->GetName() == label) { // found collection
|
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;
|
collIdx = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -1014,7 +1015,7 @@ void PmuppGui::refresh()
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
QMessageBox::critical(this, "ERROR - REFRESH",
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -973,7 +973,8 @@ void PmuppGui::refresh()
|
|||||||
|
|
||||||
for (int i=0; i<fParamDataHandler->GetNoOfCollections(); i++) {
|
for (int i=0; i<fParamDataHandler->GetNoOfCollections(); i++) {
|
||||||
if (fParamDataHandler->GetCollection(i)->GetName() == label) { // found collection
|
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;
|
collIdx = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user