mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
Fix Item::unreadCountChanged() emit in wrong place
This commit is contained in:
@@ -105,12 +105,6 @@ void Folder::handleItemUnreadCountChanged()
|
|||||||
emit unreadCountChanged(this);
|
emit unreadCountChanged(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Folder::handleItemAboutToBeDestroyed(Item *item)
|
|
||||||
{
|
|
||||||
if (item->unreadCount() > 0)
|
|
||||||
emit unreadCountChanged(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Folder::cleanup()
|
void Folder::cleanup()
|
||||||
{
|
{
|
||||||
foreach (Item *item, items())
|
foreach (Item *item, items())
|
||||||
@@ -127,7 +121,6 @@ void Folder::addItem(Item *item)
|
|||||||
connect(item, &Item::articleRead, this, &Item::articleRead);
|
connect(item, &Item::articleRead, this, &Item::articleRead);
|
||||||
connect(item, &Item::articleAboutToBeRemoved, this, &Item::articleAboutToBeRemoved);
|
connect(item, &Item::articleAboutToBeRemoved, this, &Item::articleAboutToBeRemoved);
|
||||||
connect(item, &Item::unreadCountChanged, this, &Folder::handleItemUnreadCountChanged);
|
connect(item, &Item::unreadCountChanged, this, &Folder::handleItemUnreadCountChanged);
|
||||||
connect(item, &Item::aboutToBeDestroyed, this, &Folder::handleItemAboutToBeDestroyed);
|
|
||||||
emit unreadCountChanged(this);
|
emit unreadCountChanged(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,6 @@ namespace RSS
|
|||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void handleItemUnreadCountChanged();
|
void handleItemUnreadCountChanged();
|
||||||
void handleItemAboutToBeDestroyed(Item *item);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void cleanup() override;
|
void cleanup() override;
|
||||||
|
|||||||
Reference in New Issue
Block a user