From d9cb62993d54183a7491c25900a670d7bfca9f6c Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sun, 25 Oct 2009 14:43:31 +0100 Subject: [PATCH] fix multi-console problem for bat on win32 --- bacula/src/qt-console/bcomm/dircomm.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bacula/src/qt-console/bcomm/dircomm.cpp b/bacula/src/qt-console/bcomm/dircomm.cpp index d710ea86a7..86f97478b7 100644 --- a/bacula/src/qt-console/bcomm/dircomm.cpp +++ b/bacula/src/qt-console/bcomm/dircomm.cpp @@ -468,6 +468,14 @@ bool DirComm::is_notify_enabled() const bool enabled = false; if (m_notifier) enabled = m_notifier->isEnabled(); + +/* TODO: Windows doesn't support notifier without some kludge + * This cheat seems to work, waiting for a cleaner solution. + */ +#ifdef HAVE_WIN32 + enabled = true; +#endif + return enabled; } -- 2.39.5