mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Prevent incorrect popullating of Unread RSS list
This commit is contained in:
parent
4e37688105
commit
2d3914c077
1 changed files with 5 additions and 0 deletions
|
@ -138,6 +138,11 @@ void FeedListWidget::handleItemPathChanged(RSS::Item *rssItem)
|
||||||
void FeedListWidget::handleItemAboutToBeRemoved(RSS::Item *rssItem)
|
void FeedListWidget::handleItemAboutToBeRemoved(RSS::Item *rssItem)
|
||||||
{
|
{
|
||||||
delete m_rssToTreeItemMapping.take(rssItem);
|
delete m_rssToTreeItemMapping.take(rssItem);
|
||||||
|
|
||||||
|
// RSS Item is still valid in this slot so if it is the last
|
||||||
|
// item we should prevent Unread list populating
|
||||||
|
if (m_rssToTreeItemMapping.size() == 1)
|
||||||
|
setCurrentItem(nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
QTreeWidgetItem *FeedListWidget::stickyUnreadItem() const
|
QTreeWidgetItem *FeedListWidget::stickyUnreadItem() const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue