Browse Source

Don't remove read articles from Unread list

Revert back old behavior (incorrect but, perhaps, more user-friendly),
when Unread list populates with "unread" articles only but then it can
contain "read" articles if they become "read" when Unread list is shown.
adaptive-webui-19844
Vladimir Golovnev (Glassez) 8 years ago
parent
commit
76e3383650
  1. 5
      src/gui/rss/articlelistwidget.cpp

5
src/gui/rss/articlelistwidget.cpp

@ -93,14 +93,9 @@ void ArticleListWidget::handleArticleAdded(RSS::Article *rssArticle)
void ArticleListWidget::handleArticleRead(RSS::Article *rssArticle) void ArticleListWidget::handleArticleRead(RSS::Article *rssArticle)
{ {
if (m_unreadOnly) {
delete m_rssArticleToListItemMapping.take(rssArticle);
}
else {
auto item = mapRSSArticle(rssArticle); auto item = mapRSSArticle(rssArticle);
item->setData(Qt::ForegroundRole, QColor("grey")); item->setData(Qt::ForegroundRole, QColor("grey"));
item->setData(Qt::DecorationRole, QIcon(":/icons/sphere.png")); item->setData(Qt::DecorationRole, QIcon(":/icons/sphere.png"));
}
checkInvariant(); checkInvariant();
} }

Loading…
Cancel
Save