mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 16:07:23 -06: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:
@@ -151,15 +151,6 @@ void RssManager::saveStreamList() const {
|
||||
settings.setRssFeedsAliases(aliases);
|
||||
}
|
||||
|
||||
static bool laterItemDate(const RssArticlePtr& a, const RssArticlePtr& b)
|
||||
{
|
||||
return (a->date() > b->date());
|
||||
}
|
||||
|
||||
void RssManager::sortArticleListByDateDesc(RssArticleList& news_list) {
|
||||
qSort(news_list.begin(), news_list.end(), laterItemDate);
|
||||
}
|
||||
|
||||
RssDownloadRuleList *RssManager::downloadRules() const
|
||||
{
|
||||
Q_ASSERT(m_downloadRules);
|
||||
|
||||
Reference in New Issue
Block a user