changeset 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 7e304573ebd1
children 7ed285380301
files ui/main.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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/