From be027aaa95e98d31c759af0c8e26fd3f8c0acb99 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Mon, 15 Jun 2020 11:02:57 +0200 Subject: [PATCH] Show "important" node even when "show unread items only" is selected and it has no unread messages. --- src/librssguard/core/feedsproxymodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librssguard/core/feedsproxymodel.cpp b/src/librssguard/core/feedsproxymodel.cpp index b71cadf5d..985278f23 100644 --- a/src/librssguard/core/feedsproxymodel.cpp +++ b/src/librssguard/core/feedsproxymodel.cpp @@ -218,8 +218,8 @@ bool FeedsProxyModel::filterAcceptsRowInternal(int source_row, const QModelIndex const RootItem* item = m_sourceModel->itemForIndex(idx); - if (item->kind() == RootItemKind::Bin || item->kind() == RootItemKind::ServiceRoot) { - // Recycle bin is always displayed. + if (item->kind() != RootItemKind::Category && item->kind() != RootItemKind::Feed) { + // Some items are always visible. return true; } else if (item->isParentOf(m_selectedItem) /* || item->isChildOf(m_selectedItem)*/ || m_selectedItem == item) {