diff --git a/src/gui/feedmessageviewer.cpp b/src/gui/feedmessageviewer.cpp index 0f52c7ac5..c9e8c7d8e 100755 --- a/src/gui/feedmessageviewer.cpp +++ b/src/gui/feedmessageviewer.cpp @@ -277,7 +277,14 @@ void FeedMessageViewer::switchFeedComponentVisibility() { } void FeedMessageViewer::toggleShowOnlyUnreadFeeds() { - m_feedsView->invalidateReadFeedsFilter(true, qobject_cast(sender())->isChecked()); + QAction *origin = qobject_cast(sender()); + + if (origin == NULL) { + m_feedsView->invalidateReadFeedsFilter(true, false); + } + else { + m_feedsView->invalidateReadFeedsFilter(true, origin->isChecked()); + } } void FeedMessageViewer::updateMessageButtonsAvailability() {