]> git.sur5r.net Git - bacula/bacula/commitdiff
patch to prevent writing ".messages" when notify is off.
authorDirk H Bartley <dbartley@schupan.com>
Sat, 21 Jul 2007 19:33:08 +0000 (19:33 +0000)
committerDirk H Bartley <dbartley@schupan.com>
Sat, 21 Jul 2007 19:33:08 +0000 (19:33 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5215 91ce42f0-d328-0410-95d8-f526ca767f89

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

index 2911e2c4a68c1b45d0dcf1a0463c79d4c798f579..c0ea468e0813eb634eca64797d4da35d408db3fe 100644 (file)
@@ -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");