summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pvsgui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pvsgui.cpp b/src/pvsgui.cpp
index 5ae3db6..94d7a74 100644
--- a/src/pvsgui.cpp
+++ b/src/pvsgui.cpp
@@ -311,6 +311,8 @@ void PVSGUI::pvsDisconnect()
void PVSGUI::showMessage(QString title, QString msg, bool useDialog)
{
+ if (_restricted) return;
+
// show balloon message if supported, otherwise show message dialog
if (!useDialog && _trayIcon && QSystemTrayIcon::supportsMessages())
_trayIcon->showMessage(title, msg, QSystemTrayIcon::Information, 10000);