Some minor changes for feed/message viewer.

This commit is contained in:
Martin Rotter 2015-08-25 15:41:57 +02:00
parent a3773914b7
commit 0220e0b90e

View File

@ -277,7 +277,14 @@ void FeedMessageViewer::switchFeedComponentVisibility() {
}
void FeedMessageViewer::toggleShowOnlyUnreadFeeds() {
m_feedsView->invalidateReadFeedsFilter(true, qobject_cast<QAction*>(sender())->isChecked());
QAction *origin = qobject_cast<QAction*>(sender());
if (origin == NULL) {
m_feedsView->invalidateReadFeedsFilter(true, false);
}
else {
m_feedsView->invalidateReadFeedsFilter(true, origin->isChecked());
}
}
void FeedMessageViewer::updateMessageButtonsAvailability() {