]> git.sur5r.net Git - bacula/bacula/commitdiff
Ran into a problem deleting a volume. This fixes it.
authorDirk H Bartley <dbartley@schupan.com>
Thu, 30 Apr 2009 16:57:18 +0000 (16:57 +0000)
committerDirk H Bartley <dbartley@schupan.com>
Thu, 30 Apr 2009 16:57:18 +0000 (16:57 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8775 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/qt-console/pages.cpp
bacula/src/qt-console/select/select.cpp

index 6aaa7cd2c9e22d387f51a2cfca77682e520ea4f3..2767a584ee40a06d9a4710a4a473c6027dca6680 100644 (file)
@@ -231,8 +231,14 @@ void Pages::treeWidgetName(QString &name)
 void Pages::consoleCommand(QString &command)
 {
    int conn;
+   bool donotify = false;
    if (m_console->availableDirComm(conn))  {
+      if (m_console->is_notify_enabled(conn)) {
+         donotify = true;
+         m_console->notify(conn, false);
+      }
       consoleCommand(command, conn);
+      if (donotify) { m_console->notify(conn, true); }
    }
 }
 void Pages::consoleCommand(QString &command, int conn)
index eaa138afda9aaf86cb533726a194e85d97e7c4a8..35fe1fe6600bc265b0179bfa1a67a2b8c8f33755 100644 (file)
@@ -116,10 +116,10 @@ yesnoPopUp::yesnoPopUp(Console *console, int conn)
    console->displayToPrompt(conn);
    switch (msgBox.exec()) {
    case QMessageBox::Yes:
-      console->write_dir("yes");
+      console->write_dir(conn, "yes");
       break;
    case QMessageBox::No:
-      console->write_dir("no");
+      console->write_dir(conn, "no");
       break;
    }
    console->displayToPrompt(conn);