mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Fix to last commit (reversed sort order of RSS articles)
This commit is contained in:
parent
3bc75bb068
commit
1905a6f0d1
1 changed files with 3 additions and 3 deletions
|
@ -134,13 +134,13 @@ void RssManager::saveStreamList() const {
|
|||
settings.setRssFeedsAliases(aliases);
|
||||
}
|
||||
|
||||
static bool earlierItemDate(const RssArticle& a, const RssArticle& b)
|
||||
static bool laterItemDate(const RssArticle& a, const RssArticle& b)
|
||||
{
|
||||
return (a.date() < b.date());
|
||||
return (a.date() > b.date());
|
||||
}
|
||||
|
||||
void RssManager::sortNewsList(QList<RssArticle>& news_list) {
|
||||
qSort(news_list.begin(), news_list.end(), earlierItemDate);
|
||||
qSort(news_list.begin(), news_list.end(), laterItemDate);
|
||||
}
|
||||
|
||||
RssManager * RssManager::instance()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue