Show last selected listing in backup manager.

This commit is contained in:
codestation
2013-12-19 17:43:38 -04:30
parent 2b26fb239c
commit 7bc54d3533
2 changed files with 5 additions and 1 deletions

View File

@@ -91,6 +91,10 @@ void BackupManagerForm::loadBackupListing(int index)
bool sys_dir; bool sys_dir;
int img_width; int img_width;
if(index < 0) {
index = ui->backupComboBox->currentIndex();
}
ui->tableWidget->clear(); ui->tableWidget->clear();
switch(index) { switch(index) {

View File

@@ -126,7 +126,7 @@ void MainWidget::setTrayTooltip(QString message)
void MainWidget::openManager() void MainWidget::openManager()
{ {
form.loadBackupListing(0); form.loadBackupListing(-1);
form.show(); form.show();
} }