From dee7d4884918a0f9b9b76322c95f1e6947de2e42 Mon Sep 17 00:00:00 2001 From: Dirk H Bartley Date: Thu, 30 Apr 2009 16:57:18 +0000 Subject: [PATCH] Ran into a problem deleting a volume. This fixes it. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8775 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/qt-console/pages.cpp | 6 ++++++ bacula/src/qt-console/select/select.cpp | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/bacula/src/qt-console/pages.cpp b/bacula/src/qt-console/pages.cpp index 6aaa7cd2c9..2767a584ee 100644 --- a/bacula/src/qt-console/pages.cpp +++ b/bacula/src/qt-console/pages.cpp @@ -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) diff --git a/bacula/src/qt-console/select/select.cpp b/bacula/src/qt-console/select/select.cpp index eaa138afda..35fe1fe660 100644 --- a/bacula/src/qt-console/select/select.cpp +++ b/bacula/src/qt-console/select/select.cpp @@ -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); -- 2.39.5