diff ui/main.cpp @ 871:4efd6378c001

(issue51) Add fallback in case systemtray is unavailable. If no systemtray is available it will now show a message box as notification.
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 06 Aug 2014 18:03:23 +0200
parents c9a31544aaab
children 0051cb07da28
line wrap: on
line diff
--- a/ui/main.cpp	Wed Aug 06 11:55:02 2014 +0200
+++ b/ui/main.cpp	Wed Aug 06 18:03:23 2014 +0200
@@ -15,7 +15,6 @@
 
 #include <QApplication>
 #include <QFile>
-#include <QSystemTrayIcon>
 #include <QtPlugin>
 #include <QMessageBox>
 #include <QSettings>
@@ -107,7 +106,7 @@
             QLocale::system().name();
     }
     app.installTranslator(&translator);
-
+/*
     if ((!QSystemTrayIcon::isSystemTrayAvailable() ||
             !QSystemTrayIcon::supportsMessages()) && trayMode) {
         QMessageBox::critical(0, QString::fromLatin1(APPNAME),
@@ -116,7 +115,7 @@
                                           "be used in a desktop environment."));
         return 1;
     }
-
+*/
 #ifdef Q_OS_WIN
     {
         TaskScheduler taskSched;

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