mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-05 11:24:15 +00:00
parent
a6868e2b25
commit
f2af308e6d
@ -692,8 +692,10 @@ void AutomatedRssDownloader::handleRuleAdded(const QString &ruleName)
|
||||
|
||||
void AutomatedRssDownloader::handleRuleRenamed(const QString &ruleName, const QString &oldRuleName)
|
||||
{
|
||||
auto item = m_itemsByRuleName.value(oldRuleName);
|
||||
auto item = m_itemsByRuleName.take(oldRuleName);
|
||||
m_itemsByRuleName.insert(ruleName, item);
|
||||
if (m_currentRule.name() == oldRuleName)
|
||||
m_currentRule.setName(ruleName);
|
||||
item->setText(ruleName);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user