mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-31 12:00:16 -07:00
Keep RSS articles sorted by date in memory do avoid sorting them all the time
Optimization to address issue #34.
This commit is contained in:
parent
aecdc57cd4
commit
d1e30cacf8
8 changed files with 58 additions and 61 deletions
|
@ -490,11 +490,9 @@ void RSSImp::refreshArticleList(QTreeWidgetItem* item) {
|
|||
qDebug("Getting the list of news");
|
||||
RssArticleList news;
|
||||
if (rss_item == m_rssManager)
|
||||
news = rss_item->unreadArticleList();
|
||||
news = rss_item->unreadArticleListByDateDesc();
|
||||
else if (rss_item)
|
||||
news = rss_item->articleList();
|
||||
// Sort
|
||||
RssManager::sortArticleListByDateDesc(news);
|
||||
news = rss_item->articleListByDateDesc();
|
||||
// Clear the list first
|
||||
textBrowser->clear();
|
||||
m_currentArticle = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue