]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/qt-console/run/prune.cpp
bat: Use green/red bullet for InChanger in mediview
[bacula/bacula] / bacula / src / qt-console / run / prune.cpp
index cf6c4b71a1198d9542c678c20e624d2477821ef2..e37d82439a30f4f4a7637027343d0eff28875f9e 100644 (file)
@@ -1,7 +1,7 @@
 /*
    Bacula® - The Network Backup Solution
 
-   Copyright (C) 2007-2008 Free Software Foundation Europe e.V.
+   Copyright (C) 2007-2009 Free Software Foundation Europe e.V.
 
    The main author of Bacula is Kern Sibbald, with contributions from
    many others, a complete list can be found in the file AUTHORS.
@@ -47,7 +47,7 @@ prunePage::prunePage(const QString &volume, const QString &client)
    m_name = tr("Prune");
    pgInitialize();
    setupUi(this);
-   m_console->notify(false);
+   m_conn = m_console->notifyOff();
 
    QString query("SELECT VolumeName AS Media FROM Media ORDER BY Media");
    if (mainWin->m_sqlDebug) {
@@ -113,7 +113,7 @@ void prunePage::okButtonPushed()
    }
 
    consoleCommand(cmd);
-   m_console->notify(true);
+   m_console->notify(m_conn, true);
    closeStackPage();
    mainWin->resetFocus();
 }
@@ -123,7 +123,7 @@ void prunePage::cancelButtonPushed()
 {
    mainWin->set_status(tr(" Canceled"));
    this->hide();
-   m_console->notify(true);
+   m_console->notify(m_conn, true);
    closeStackPage();
    mainWin->resetFocus();
 }