Some changes.

This commit is contained in:
Martin Rotter 2014-02-01 18:15:09 +01:00
parent 1f8c968c7e
commit 8527fa5657
3 changed files with 14 additions and 9 deletions

View File

@ -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 {

View File

@ -43,7 +43,7 @@ class FeedMessageViewer : public TabContent {
void quitDownloader();
public slots:
// Feed updates.
// Feed updating.
void updateSelectedFeeds();
void updateAllFeeds();

View File

@ -102,8 +102,8 @@ Authors of this application are NOT responsible for lost data.</string>
<rect>
<x>0</x>
<y>0</y>
<width>564</width>
<height>363</height>
<width>100</width>
<height>30</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
@ -180,8 +180,8 @@ Authors of this application are NOT responsible for lost data.</string>
<rect>
<x>0</x>
<y>0</y>
<width>558</width>
<height>337</height>
<width>167</width>
<height>219</height>
</rect>
</property>
<layout class="QFormLayout" name="formLayout">
@ -763,6 +763,13 @@ Authors of this application are NOT responsible for lost data.</string>
<property name="fieldGrowthPolicy">
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
</property>
<item row="0" column="0">
<widget class="QCheckBox" name="m_checkRemoveReadMessagesOnExit">
<property name="text">
<string>Remove all read messages from standard feeds on application exit</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>