Mercurial > trustbridge
comparison 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 |
comparison
equal
deleted
inserted
replaced
1041:6235b11a22a0 | 1042:74951e389cb1 |
---|---|
1390 mLastUpdateCheckContents->setText(QLocale::system().toString(now, DATETIME_FORMAT)); | 1390 mLastUpdateCheckContents->setText(QLocale::system().toString(now, DATETIME_FORMAT)); |
1391 mLastUpdateCheckContents->show(); | 1391 mLastUpdateCheckContents->show(); |
1392 mLastUpdateCheck->show(); | 1392 mLastUpdateCheck->show(); |
1393 syslog_info_printf(tr("Sucessfully checked for updates.").toUtf8().constData()); | 1393 syslog_info_printf(tr("Sucessfully checked for updates.").toUtf8().constData()); |
1394 } | 1394 } |
1395 if (getState() != NewSoftwareAvailable && getState() != NewListAvailable && mTrayMode) { | 1395 if ((getState() != NewSoftwareAvailable && getState() != NewListAvailable && mTrayMode) |
1396 && !isVisible()) { | |
1396 qDebug() << "Shutting down as no list or Software is available."; | 1397 qDebug() << "Shutting down as no list or Software is available."; |
1397 closeApp(); | 1398 closeApp(); |
1398 } else { | 1399 } else { |
1399 mTrayIcon->show(); | 1400 mTrayIcon->show(); |
1400 } | 1401 } |