comparison ui/main.cpp @ 73:5c616934cbe4

Also check that the system tray supports messages
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 19 Mar 2014 15:35:31 +0000
parents f22a99f7cb69
children 3349c9596043
comparison
equal deleted inserted replaced
72:7e304573ebd1 73:5c616934cbe4
26 26
27 int main(int argc, char **argv) 27 int main(int argc, char **argv)
28 { 28 {
29 QApplication app (argc, argv); 29 QApplication app (argc, argv);
30 30
31 if (!QSystemTrayIcon::isSystemTrayAvailable()) { 31 if (!QSystemTrayIcon::isSystemTrayAvailable() ||
32 !QSystemTrayIcon::supportsMessages()) {
32 QMessageBox::critical(0, QString::fromLatin1(APPNAME), 33 QMessageBox::critical(0, QString::fromLatin1(APPNAME),
33 QObject::tr("Couldn't detect any system tray " 34 QObject::tr("Couldn't detect any system tray "
34 "on this system. This software can only " 35 "on this system. This software can only "
35 "be used in a desktop environment.")); 36 "be used in a desktop environment."));
36 return 1; 37 return 1;

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