diff ui/main.cpp @ 712:1e61903f61e2

Only exit when no tray is available and we are in tray mode.
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 02 Jul 2014 15:23:44 +0200
parents 376978e9cc61
children 8de162b91a22
line wrap: on
line diff
--- a/ui/main.cpp	Wed Jul 02 15:12:25 2014 +0200
+++ b/ui/main.cpp	Wed Jul 02 15:23:44 2014 +0200
@@ -88,8 +88,8 @@
     }
     app.installTranslator(&translator);
 
-    if (!QSystemTrayIcon::isSystemTrayAvailable() ||
-            !QSystemTrayIcon::supportsMessages()) {
+    if ((!QSystemTrayIcon::isSystemTrayAvailable() ||
+            !QSystemTrayIcon::supportsMessages()) && trayMode) {
         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/