changeset 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 6235b11a22a0
children 5c5ea9473e17
files ui/mainwindow.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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/