mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
Optimized RSS settings code
This commit is contained in:
parent
29e465d2f6
commit
6629c39f01
7 changed files with 57 additions and 63 deletions
|
@ -290,7 +290,7 @@ short RssFeed::readDoc(QIODevice* device) {
|
|||
resizeList();
|
||||
|
||||
// RSS Feed Downloader
|
||||
if(RssSettings::isRssDownloadingEnabled()) {
|
||||
if(RssSettings().isRssDownloadingEnabled()) {
|
||||
foreach(RssArticle* item, values()) {
|
||||
if(item->isRead()) continue;
|
||||
QString torrent_url;
|
||||
|
@ -313,7 +313,7 @@ short RssFeed::readDoc(QIODevice* device) {
|
|||
}
|
||||
|
||||
void RssFeed::resizeList() {
|
||||
unsigned int max_articles = RssSettings::getRSSMaxArticlesPerFeed();
|
||||
unsigned int max_articles = RssSettings().getRSSMaxArticlesPerFeed();
|
||||
unsigned int nb_articles = this->size();
|
||||
if(nb_articles > max_articles) {
|
||||
QList<RssArticle*> listItem = RssManager::sortNewsList(this->values());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue