mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-24 15:15:24 -07:00
parent
561975f435
commit
59cf70f8f2
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue