From: Eric Bollengier Date: Sat, 2 Oct 2010 16:47:11 +0000 (+0200) Subject: bat: Use current set of jobids for directories X-Git-Tag: Release-5.2.1~1060 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=82c61d9c52e4a9b22d56249e0e3c295a6d1cb827;p=bacula%2Fbacula bat: Use current set of jobids for directories --- 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; }