mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 13:04:23 +00:00
Fix remove oldest article
This commit is contained in:
parent
e433cbab97
commit
3a3125ea2b
@ -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…
x
Reference in New Issue
Block a user