diff --git a/src/librssguard/core/feedsmodel.cpp b/src/librssguard/core/feedsmodel.cpp index b64f39cb2..c42650745 100644 --- a/src/librssguard/core/feedsmodel.cpp +++ b/src/librssguard/core/feedsmodel.cpp @@ -554,9 +554,8 @@ QVariant FeedsModel::data(const QModelIndex& index, int role) const { case Qt::ItemDataRole::FontRole: { RootItem* it = itemForIndex(index); bool is_bold = it->countOfUnreadMessages() > 0; - bool is_striked = it->kind() == RootItem::Kind::Feed && - qApp->settings()->value(GROUP(Feeds), SETTING(Feeds::StrikethroughDisabledFeeds)).toBool() && - qobject_cast(it)->isSwitchedOff(); + bool is_striked = it->kind() == RootItem::Kind::Feed && it->toFeed()->isSwitchedOff() && + qApp->settings()->value(GROUP(Feeds), SETTING(Feeds::StrikethroughDisabledFeeds)).toBool(); return is_bold ? (is_striked ? m_boldStrikedFont : m_boldFont) : (is_striked ? m_normalStrikedFont : m_normalFont); diff --git a/src/librssguard/miscellaneous/settings.cpp b/src/librssguard/miscellaneous/settings.cpp index 4853aafd7..9a6bc64d5 100644 --- a/src/librssguard/miscellaneous/settings.cpp +++ b/src/librssguard/miscellaneous/settings.cpp @@ -101,7 +101,7 @@ DKEY Feeds::EnableTooltipsFeedsMessages = "show_tooltips"; DVALUE(bool) Feeds::EnableTooltipsFeedsMessagesDef = true; DKEY Feeds::StrikethroughDisabledFeeds = "strikethrough_disabled_feeds"; -DVALUE(bool) Feeds::StrikethroughDisabledFeedsDef = false; +DVALUE(bool) Feeds::StrikethroughDisabledFeedsDef = true; DKEY Feeds::PauseFeedFetching = "pause_feed_fetching"; DVALUE(bool) Feeds::PauseFeedFetchingDef = false;