[PATCH 1 of 4] (issue103) Only shut down if the mainwidow is not visible

Wald Commits scm-commit at wald.intevation.org
Thu Sep 4 16:13:38 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1409839955 -7200
# Node ID 74951e389cb1c737436e430c4e86799570a5be57
# Parent  6235b11a22a050ba7ebb0087e8ebffd53cea3e56
(issue103) Only shut down if the mainwidow is not visible

diff -r 6235b11a22a0 -r 74951e389cb1 ui/mainwindow.cpp
--- 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 {


More information about the Trustbridge-commits mailing list