mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-21 03:12:21 +08:00
Fix renaming RSS autodownload rule
This commit is contained in:
parent
18b2511238
commit
1b5dd0aa2d
@ -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 New Issue
Block a user