Browse Source

Properly clear ArticleListWidget

adaptive-webui-19844
Vladimir Golovnev (Glassez) 8 years ago
parent
commit
4e37688105
  1. 2
      src/gui/rss/feedlistwidget.cpp
  2. 5
      src/gui/rss/rsswidget.cpp

2
src/gui/rss/feedlistwidget.cpp

@ -164,6 +164,8 @@ QList<QTreeWidgetItem *> FeedListWidget::getAllOpenedFolders(QTreeWidgetItem *pa @@ -164,6 +164,8 @@ QList<QTreeWidgetItem *> FeedListWidget::getAllOpenedFolders(QTreeWidgetItem *pa
RSS::Item *FeedListWidget::getRSSItem(QTreeWidgetItem *item) const
{
if (!item) return nullptr;
return reinterpret_cast<RSS::Item *>(item->data(0, Qt::UserRole).value<quintptr>());
}

5
src/gui/rss/rsswidget.cpp

@ -416,11 +416,6 @@ void RSSWidget::copySelectedFeedsURL() @@ -416,11 +416,6 @@ void RSSWidget::copySelectedFeedsURL()
void RSSWidget::handleCurrentFeedItemChanged(QTreeWidgetItem *currentItem)
{
if (!currentItem) {
m_articleListWidget->clear();
return;
}
m_articleListWidget->setRSSItem(m_feedListWidget->getRSSItem(currentItem)
, (currentItem == m_feedListWidget->stickyUnreadItem()));
}

Loading…
Cancel
Save