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() { void FeedsView::executeNextAutoUpdate() {
if (!SystemFactory::instance()->applicationCloseLock()->tryLock() && if (!SystemFactory::instance()->applicationCloseLock()->tryLock()) {
SystemTrayIcon::isSystemTrayActivated()) { qDebug("Delaying scheduled feed auto-updates for one minute "
SystemTrayIcon::instance()->showMessage(tr("Cannot update scheduled items"), "due to another running update.");
tr("You cannot update scheduled items because another feed update is ongoing."),
QSystemTrayIcon::Warning);
// Cannot update, quit. // Cannot update, quit.
return; return;