mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-29 19:18:42 -07:00
Fix remove oldest article
This commit is contained in:
parent
e433cbab97
commit
3a3125ea2b
1 changed files with 4 additions and 2 deletions
|
@ -340,9 +340,11 @@ bool Feed::addArticle(Article *article)
|
|||
|
||||
void Feed::removeOldestArticle()
|
||||
{
|
||||
auto oldestArticle = m_articlesByDate.takeLast();
|
||||
m_articles.remove(oldestArticle->guid());
|
||||
auto oldestArticle = m_articlesByDate.last();
|
||||
emit articleAboutToBeRemoved(oldestArticle);
|
||||
|
||||
m_articles.remove(oldestArticle->guid());
|
||||
m_articlesByDate.removeLast();
|
||||
bool isRead = oldestArticle->isRead();
|
||||
delete oldestArticle;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue