System tray could still be loading so just warn and continue.
authorRoy Marples <roy@marples.name>
Thu, 18 Sep 2014 10:04:26 +0000 (10:04 +0000)
committerRoy Marples <roy@marples.name>
Thu, 18 Sep 2014 10:04:26 +0000 (10:04 +0000)
src/dhcpcd-qt/main.cpp

index afff9d437eada2bba4f0c9122f5ef167b1d5d37c..55fc7b3c4c9aca0cecc5a4d829acfb4324a546a3 100644 (file)
@@ -34,11 +34,8 @@ main(int argc, char **argv)
 
        QApplication app(argc, argv);
 
 
        QApplication app(argc, argv);
 
-       if (!QSystemTrayIcon::isSystemTrayAvailable()) {
-               QMessageBox::critical(0, QObject::tr("Systray"),
-                   QObject::tr("No system tray available"));
-               return EXIT_FAILURE;
-       }
+       if (!QSystemTrayIcon::isSystemTrayAvailable())
+               qWarning("System tray may not be available");
 
        QApplication::setQuitOnLastWindowClosed(false);
 
 
        QApplication::setQuitOnLastWindowClosed(false);