mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-26 19:26:59 +03:00
Merge pull request #12843 from glassez/fix-rename-rule
Fix renaming RSS autodownload rule
This commit is contained in:
commit
306499f7a8
1 changed files with 3 additions and 1 deletions
|
@ -200,7 +200,9 @@ bool AutoDownloader::renameRule(const QString &ruleName, const QString &newRuleN
|
|||
if (!hasRule(ruleName)) 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;
|
||||
store();
|
||||
emit ruleRenamed(newRuleName, ruleName);
|
||||
|
|
Loading…
Reference in a new issue