diff --git a/src/gui/feedmessageviewer.cpp b/src/gui/feedmessageviewer.cpp index b2bb16792..5d79a4ab6 100644 --- a/src/gui/feedmessageviewer.cpp +++ b/src/gui/feedmessageviewer.cpp @@ -91,16 +91,14 @@ void FeedMessageViewer::loadSize() { void FeedMessageViewer::quitDownloader() { qDebug("Quitting feed downloader thread."); - m_feedDownloaderThread->quit(); qDebug("Feed downloader thread aborted."); - m_feedDownloader->deleteLater(); } void FeedMessageViewer::updateSelectedFeeds() { - if (SystemFactory::instance()->applicationCloseLock()->tryLockForRead()) { + if (SystemFactory::instance()->applicationCloseLock()->tryLockForWrite()) { emit feedsUpdateRequested(m_feedsView->selectedFeeds()); } else { @@ -109,7 +107,7 @@ void FeedMessageViewer::updateSelectedFeeds() { } void FeedMessageViewer::updateAllFeeds() { - if (SystemFactory::instance()->applicationCloseLock()->tryLockForRead()) { + if (SystemFactory::instance()->applicationCloseLock()->tryLockForWrite()) { emit feedsUpdateRequested(m_feedsView->allFeeds()); } else { diff --git a/src/gui/feedmessageviewer.h b/src/gui/feedmessageviewer.h index 86352b8b5..b1b410fe7 100644 --- a/src/gui/feedmessageviewer.h +++ b/src/gui/feedmessageviewer.h @@ -43,7 +43,7 @@ class FeedMessageViewer : public TabContent { void quitDownloader(); public slots: - // Feed updates. + // Feed updating. void updateSelectedFeeds(); void updateAllFeeds(); diff --git a/src/gui/formsettings.ui b/src/gui/formsettings.ui index 7314ebaf6..76ec5cf80 100644 --- a/src/gui/formsettings.ui +++ b/src/gui/formsettings.ui @@ -102,8 +102,8 @@ Authors of this application are NOT responsible for lost data. 0 0 - 564 - 363 + 100 + 30 @@ -180,8 +180,8 @@ Authors of this application are NOT responsible for lost data. 0 0 - 558 - 337 + 167 + 219 @@ -763,6 +763,13 @@ Authors of this application are NOT responsible for lost data. QFormLayout::AllNonFixedFieldsGrow + + + + Remove all read messages from standard feeds on application exit + + +