1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-12 07:48:04 +00:00

Update matching RSS articles while editing rules

Save the rules as soon as they are edited so that the matching
articles tree is immediately updated.

Closes #2829.
This commit is contained in:
Gabriele 2015-04-04 19:12:34 +02:00
parent d2ffbc44f1
commit 027a08c92e

View File

@ -523,6 +523,7 @@ void AutomatedRssDownloader::updateMatchingArticles()
return; return;
const QHash<QString, RssFeedPtr> all_feeds = manager->getAllFeedsAsHash(); const QHash<QString, RssFeedPtr> all_feeds = manager->getAllFeedsAsHash();
saveEditedRule();
foreach (const QListWidgetItem *rule_item, ui->listRules->selectedItems()) { foreach (const QListWidgetItem *rule_item, ui->listRules->selectedItems()) {
RssDownloadRulePtr rule = m_editableRuleList->getRule(rule_item->text()); RssDownloadRulePtr rule = m_editableRuleList->getRule(rule_item->text());
if (!rule) continue; if (!rule) continue;