diff ui/main.cpp @ 73:5c616934cbe4

Also check that the system tray supports messages
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 19 Mar 2014 15:35:31 +0000
parents f22a99f7cb69
children 3349c9596043
line wrap: on
line diff
--- a/ui/main.cpp	Wed Mar 19 11:33:53 2014 +0000
+++ b/ui/main.cpp	Wed Mar 19 15:35:31 2014 +0000
@@ -28,7 +28,8 @@
 {
     QApplication app (argc, argv);
 
-    if (!QSystemTrayIcon::isSystemTrayAvailable()) {
+    if (!QSystemTrayIcon::isSystemTrayAvailable() ||
+            !QSystemTrayIcon::supportsMessages()) {
         QMessageBox::critical(0, QString::fromLatin1(APPNAME),
                               QObject::tr("Couldn't detect any system tray "
                                           "on this system. This software can only "

http://wald.intevation.org/projects/trustbridge/