Supress warning when auto-update is delayed.

This commit is contained in:
Martin Rotter 2014-02-10 15:51:21 +01:00
parent 5a45fa9a21
commit 1ed4e02156

View File

@ -144,11 +144,9 @@ void FeedsView::updateSelectedFeeds() {
}
void FeedsView::executeNextAutoUpdate() {
if (!SystemFactory::instance()->applicationCloseLock()->tryLock() &&
SystemTrayIcon::isSystemTrayActivated()) {
SystemTrayIcon::instance()->showMessage(tr("Cannot update scheduled items"),
tr("You cannot update scheduled items because another feed update is ongoing."),
QSystemTrayIcon::Warning);
if (!SystemFactory::instance()->applicationCloseLock()->tryLock()) {
qDebug("Delaying scheduled feed auto-updates for one minute "
"due to another running update.");
// Cannot update, quit.
return;