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-7.0.0~1525 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f25f4136895ddf85fc40c7a80959155d55106c00;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; }