From 89c56bf8ada28159b6fd378ad81d2cee1ea8790a Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sat, 2 Oct 2010 22:05:33 +0200 Subject: [PATCH] bat: Add restore job list in console --- bacula/src/qt-console/console/console.cpp | 2 ++ bacula/src/qt-console/console/console.h | 1 + 2 files changed, 3 insertions(+) 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; -- 2.39.5