From 7bc54d3533a2d59fb5bc78f0f61054ecc629f011 Mon Sep 17 00:00:00 2001 From: codestation Date: Thu, 19 Dec 2013 17:43:38 -0430 Subject: [PATCH] Show last selected listing in backup manager. --- src/forms/backupmanagerform.cpp | 4 ++++ src/mainwidget.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/forms/backupmanagerform.cpp b/src/forms/backupmanagerform.cpp index 51bce2b..e262493 100644 --- a/src/forms/backupmanagerform.cpp +++ b/src/forms/backupmanagerform.cpp @@ -91,6 +91,10 @@ void BackupManagerForm::loadBackupListing(int index) bool sys_dir; int img_width; + if(index < 0) { + index = ui->backupComboBox->currentIndex(); + } + ui->tableWidget->clear(); switch(index) { diff --git a/src/mainwidget.cpp b/src/mainwidget.cpp index f01cd1b..ef9f230 100644 --- a/src/mainwidget.cpp +++ b/src/mainwidget.cpp @@ -126,7 +126,7 @@ void MainWidget::setTrayTooltip(QString message) void MainWidget::openManager() { - form.loadBackupListing(0); + form.loadBackupListing(-1); form.show(); }