[PATCH] Only exit when no tray is available and we are in tray mode
Wald Commits
scm-commit at wald.intevation.org
Wed Jul 2 15:24:43 CEST 2014
# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1404307424 -7200
# Node ID 1e61903f61e2369e817ef4631eed59f56a8f3856
# Parent acbe7542328333a7b09362c25a34d97a466a79b0
Only exit when no tray is available and we are in tray mode.
diff -r acbe75423283 -r 1e61903f61e2 ui/main.cpp
--- 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 "
More information about the Trustbridge-commits
mailing list