diff ui/mainwindow.cpp @ 1042:74951e389cb1

(issue103) Only shut down if the mainwidow is not visible
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 04 Sep 2014 16:12:35 +0200
parents be04030b4167
children 9812983e7650
line wrap: on
line diff
--- a/ui/mainwindow.cpp	Thu Sep 04 16:11:50 2014 +0200
+++ b/ui/mainwindow.cpp	Thu Sep 04 16:12:35 2014 +0200
@@ -1392,7 +1392,8 @@
         mLastUpdateCheck->show();
         syslog_info_printf(tr("Sucessfully checked for updates.").toUtf8().constData());
     }
-    if (getState() != NewSoftwareAvailable && getState() != NewListAvailable && mTrayMode) {
+    if ((getState() != NewSoftwareAvailable && getState() != NewListAvailable && mTrayMode)
+            && !isVisible()) {
         qDebug() << "Shutting down as no list or Software is available.";
         closeApp();
     } else {

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