From: Dirk H Bartley Date: Sat, 21 Jul 2007 19:33:08 +0000 (+0000) Subject: patch to prevent writing ".messages" when notify is off. X-Git-Tag: Release-7.0.0~5970 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0180fde3505086d7a932f33041b444d1071f6d68;p=bacula%2Fbacula patch to prevent writing ".messages" when notify is off. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5215 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/console/console.cpp b/bacula/src/qt-console/console/console.cpp index 2911e2c4a6..c0ea468e08 100644 --- a/bacula/src/qt-console/console/console.cpp +++ b/bacula/src/qt-console/console/console.cpp @@ -629,11 +629,14 @@ int Console::read() } } switch (m_sock->msglen) { - case BNET_MSGS_PENDING: - if (mainWin->m_commDebug) Pmsg0(000, "MSGS PENDING\n"); - write_dir(".messages"); - displayToPrompt(); - m_messages_pending = false; + case BNET_MSGS_PENDING : + if (m_notifier->isEnabled()) { + if (mainWin->m_commDebug) Pmsg0(000, "MSGS PENDING\n"); + write_dir(".messages"); + displayToPrompt(); + m_messages_pending = false; + } + m_messages_pending = true; continue; case BNET_CMD_OK: if (mainWin->m_commDebug) Pmsg0(000, "CMD OK\n");