Browse Source

Merge pull request #12843 from glassez/fix-rename-rule

Fix renaming RSS autodownload rule
adaptive-webui-19844
Vladimir Golovnev 5 years ago committed by GitHub
parent
commit
306499f7a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/base/rss/rss_autodownloader.cpp

4
src/base/rss/rss_autodownloader.cpp

@ -200,7 +200,9 @@ bool AutoDownloader::renameRule(const QString &ruleName, const QString &newRuleN
if (!hasRule(ruleName)) return false; if (!hasRule(ruleName)) return false;
if (hasRule(newRuleName)) return false; if (hasRule(newRuleName)) return false;
m_rules.insert(newRuleName, m_rules.take(ruleName)); AutoDownloadRule rule = m_rules.take(ruleName);
rule.setName(newRuleName);
m_rules.insert(newRuleName, rule);
m_dirty = true; m_dirty = true;
store(); store();
emit ruleRenamed(newRuleName, ruleName); emit ruleRenamed(newRuleName, ruleName);

Loading…
Cancel
Save