]> git.sur5r.net Git - bacula/bacula/commitdiff
bat: Use current set of jobids for directories
authorEric Bollengier <eric@eb.homelinux.org>
Sat, 2 Oct 2010 16:47:11 +0000 (18:47 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Wed, 6 Oct 2010 09:11:01 +0000 (11:11 +0200)
bacula/src/qt-console/restore/brestore.cpp

index 09615603bf2f416c0c53425dd2d35b08eab514ba..762329b7ca6c8b5ec21879bdb2429922d025135c 100644 (file)
@@ -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;
 }