From: Eric Bollengier Date: Sat, 2 Oct 2010 20:05:33 +0000 (+0200) Subject: bat: Add restore job list in console X-Git-Tag: Release-5.2.1~1057 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e189e1ee42e3398596f4fa463bb1adc66d2cee6a;p=bacula%2Fbacula bat: Add restore job list in console --- diff --git a/bacula/src/qt-console/console/console.cpp b/bacula/src/qt-console/console/console.cpp index dcc7d87d63..81fce7c02c 100644 --- a/bacula/src/qt-console/console/console.cpp +++ b/bacula/src/qt-console/console/console.cpp @@ -165,6 +165,7 @@ void Console::populateLists(bool /*forcenew*/) void Console::populateLists(int conn) { job_list.clear(); + restore_list.clear(); client_list.clear(); fileset_list.clear(); messages_list.clear(); @@ -175,6 +176,7 @@ void Console::populateLists(int conn) volstatus_list.clear(); mediatype_list.clear(); dir_cmd(conn, ".jobs", job_list); + dir_cmd(conn, ".jobs type=R", restore_list); dir_cmd(conn, ".clients", client_list); dir_cmd(conn, ".filesets", fileset_list); dir_cmd(conn, ".msgs", messages_list); diff --git a/bacula/src/qt-console/console/console.h b/bacula/src/qt-console/console/console.h index 216439c74e..8d23a6c035 100644 --- a/bacula/src/qt-console/console/console.h +++ b/bacula/src/qt-console/console/console.h @@ -127,6 +127,7 @@ private: public: QStringList job_list; + QStringList restore_list; QStringList client_list; QStringList fileset_list; QStringList messages_list;