This commit is contained in:
Martin Rotter 2015-07-26 18:44:00 +02:00
parent be51f0c3c1
commit 73ff85418e
2 changed files with 9 additions and 6 deletions

View File

@ -22,6 +22,7 @@
</ul>
Fixed:
<ul>
<li>Auto-updating fixed, error was due to master mutex double locking. (issue #117)</li>
<li>Fixed some memory leaks which might appear when adding/editing categories/feeds.</li>
<ul>
<hr/>

View File

@ -208,18 +208,20 @@ void FeedsView::executeNextAutoUpdate() {
// Pass needed interval data and lets the model decide which feeds
// should be updated in this pass.
QList<Feed*> feeds_for_update = m_sourceModel->feedsForScheduledUpdate(m_globalAutoUpdateEnabled &&
m_globalAutoUpdateRemainingInterval == 0);
m_globalAutoUpdateRemainingInterval == 0);
if (feeds_for_update.isEmpty()) {
// No feeds are scheduled for update now, unlock the master lock.
qApp->feedUpdateLock()->unlock();
}
else {
// No feeds are scheduled for update now, unlock the master lock.
qApp->feedUpdateLock()->unlock();
if (!feeds_for_update.isEmpty()) {
// Request update for given feeds.
emit feedsUpdateRequested(feeds_for_update);
// NOTE: OSD/bubble informing about performing
// of scheduled update can be shown now.
qApp->showGuiMessage(tr("Startin auto-update of some feeds"),
tr("I will auto-update %n feed(s).", 0, feeds_for_update.size()),
QSystemTrayIcon::Information);
}
}