Skip to content
Browse files

Fix a logic error in the new life-preserver UI backend

  • Loading branch information...
1 parent 8091fcd commit 9b40feeef60de9c461b19e48db613a734b9f929e @kmoore134 kmoore134 committed
Showing with 4 additions and 2 deletions.
  1. +1 −1 life-preserver/LPBackend.cpp
  2. +3 −1 life-preserver/mainUI.cpp
View
2 life-preserver/LPBackend.cpp
@@ -51,7 +51,7 @@ QStringList LPBackend::listSnapshots(QString dataset){
delete proc;
//Now process the output
QStringList list;
- for(int i=out.length()-1; i>=0; i++){ //go in reverse order for proper time format (newest first)
+ for(int i=out.length()-1; i>=0; i--){ //go in reverse order for proper time format (newest first)
if(out[i].startsWith(dataset+"@")){
QString snap = out[i].section("@",1,3).section(" ",0,0).simplified();;
if(!snap.isEmpty()){ list << snap; }
View
4 life-preserver/mainUI.cpp
@@ -25,7 +25,9 @@ void mainUI::setupUI(){
//Initialize the Hash
updateHash();
//Update the display
+ qDebug() << " - Update UI";
updateUI();
+ qDebug() << " - Update Menus";
updateMenus();
}
@@ -44,7 +46,7 @@ void mainUI::updateHash(QString ds){
QStringList dsList = LPBackend::listDatasets();
for(int i=0; i<dsList.length(); i++){
QStringList snaps = LPBackend::listSnapshots(dsList[i]);
- snaps.sort();
+ //snaps.sort();
HLIST.insert(dsList[i], snaps);
}
}

0 comments on commit 9b40fee

Please sign in to comment.
Something went wrong with that request. Please try again.