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