summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohann Latocha2011-06-04 14:30:35 +0200
committerJohann Latocha2011-06-04 14:30:35 +0200
commit7f19c23c52c8ff5ca29977e5e14b79805efa7d6a (patch)
tree06ed43c973fd8a547a8221ca37450e1ab75b36c5
parentEnhancement #833 (diff)
downloadpvs-7f19c23c52c8ff5ca29977e5e14b79805efa7d6a.tar.gz
pvs-7f19c23c52c8ff5ca29977e5e14b79805efa7d6a.tar.xz
pvs-7f19c23c52c8ff5ca29977e5e14b79805efa7d6a.zip
[PVSGUI] Visibility of balloon messages is now configurable (default is false)
-rw-r--r--misc/pvsgui.conf2
-rw-r--r--src/pvsgui.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/misc/pvsgui.conf b/misc/pvsgui.conf
index 9725bf5..a0171eb 100644
--- a/misc/pvsgui.conf
+++ b/misc/pvsgui.conf
@@ -1,3 +1,3 @@
[Display]
location=1
-
+showmsgs=false
diff --git a/src/pvsgui.cpp b/src/pvsgui.cpp
index 94d7a74..7e25682 100644
--- a/src/pvsgui.cpp
+++ b/src/pvsgui.cpp
@@ -311,7 +311,7 @@ void PVSGUI::pvsDisconnect()
void PVSGUI::showMessage(QString title, QString msg, bool useDialog)
{
- if (_restricted) return;
+ if (!_settings.value("Display/showmsgs").toBool()) return;
// show balloon message if supported, otherwise show message dialog
if (!useDialog && _trayIcon && QSystemTrayIcon::supportsMessages())