From 82c61d9c52e4a9b22d56249e0e3c295a6d1cb827 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sat, 2 Oct 2010 18:47:11 +0200 Subject: [PATCH] bat: Use current set of jobids for directories --- bacula/src/qt-console/restore/brestore.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bacula/src/qt-console/restore/brestore.cpp b/bacula/src/qt-console/restore/brestore.cpp index 09615603bf..762329b7ca 100644 --- a/bacula/src/qt-console/restore/brestore.cpp +++ b/bacula/src/qt-console/restore/brestore.cpp @@ -189,6 +189,7 @@ void bRestore::displayFiles(int64_t pathid, QString path) decode_stat(fieldlist.at(4).toLocal8Bit().data(), &statp, &LinkFI); item.setDateFld(col++, statp.st_mtime); // date + fieldlist.replace(3, m_jobids); // use current jobids selection item.widget(1)->setData(Qt::UserRole, fieldlist.join("\t")); // keep info } } @@ -304,6 +305,12 @@ void bRestore::clearVersions(QTableWidgetItem *item) m_current = item ; } +void bRestore::clearRestoreList() +{ + RestoreList->clearContents(); + RestoreList->setRowCount(0); +} + void bRestore::setupPage() { ClientList->addItem("Client list"); @@ -316,7 +323,7 @@ void bRestore::setupPage() this, SLOT(showInfoForFile(QTableWidgetItem *))); connect(LocationBp, SIGNAL(pressed()), this, SLOT(applyLocation())); connect(MergeChk, SIGNAL(clicked()), this, SLOT(setJob())); - + connect(ClearBp, SIGNAL(clicked()), this, SLOT(clearRestoreList())); m_populated = true; } -- 2.39.5