comparison ui/mainwindow.cpp @ 962:0a4f7235e759

Close the application if nothing new is available and in tray mode.
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 28 Aug 2014 11:26:09 +0200
parents 423e31ac656e
children 706405a2f3e8
comparison
equal deleted inserted replaced
961:423e31ac656e 962:0a4f7235e759
1391 mLastUpdateCheckContents->setText(QLocale::system().toString(now, DATETIME_FORMAT)); 1391 mLastUpdateCheckContents->setText(QLocale::system().toString(now, DATETIME_FORMAT));
1392 mLastUpdateCheckContents->show(); 1392 mLastUpdateCheckContents->show();
1393 mLastUpdateCheck->show(); 1393 mLastUpdateCheck->show();
1394 syslog_info_printf(tr("Sucessfully checked for updates.").toUtf8().constData()); 1394 syslog_info_printf(tr("Sucessfully checked for updates.").toUtf8().constData());
1395 } 1395 }
1396 if (getState() != NewSoftwareAvailable && getState() != NewListAvailable && mTrayMode) {
1397 qDebug() << "Shutting down as no list or Software is available.";
1398 closeApp();
1399 } else {
1400 mTrayIcon->show();
1401 }
1396 } 1402 }
1397 1403
1398 int MainWindow::changeCount() 1404 int MainWindow::changeCount()
1399 { 1405 {
1400 return mChangeCount; 1406 return mChangeCount;

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