1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-22 20:44:15 +00:00

Fix Item::unreadCountChanged() emit in wrong place

This commit is contained in:
Vladimir Golovnev (Glassez) 2017-05-07 18:40:42 +03:00
parent a4d5ac4b17
commit f8debdea67
2 changed files with 0 additions and 8 deletions

View File

@ -105,12 +105,6 @@ void Folder::handleItemUnreadCountChanged()
emit unreadCountChanged(this);
}
void Folder::handleItemAboutToBeDestroyed(Item *item)
{
if (item->unreadCount() > 0)
emit unreadCountChanged(this);
}
void Folder::cleanup()
{
foreach (Item *item, items())
@ -127,7 +121,6 @@ void Folder::addItem(Item *item)
connect(item, &Item::articleRead, this, &Item::articleRead);
connect(item, &Item::articleAboutToBeRemoved, this, &Item::articleAboutToBeRemoved);
connect(item, &Item::unreadCountChanged, this, &Folder::handleItemUnreadCountChanged);
connect(item, &Item::aboutToBeDestroyed, this, &Folder::handleItemAboutToBeDestroyed);
emit unreadCountChanged(this);
}

View File

@ -59,7 +59,6 @@ namespace RSS
private slots:
void handleItemUnreadCountChanged();
void handleItemAboutToBeDestroyed(Item *item);
private:
void cleanup() override;