mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 15:27:54 +00:00
Fix crash when creating a new RSS download rule
This commit is contained in:
parent
90b520651b
commit
fefc7df910
@ -275,6 +275,7 @@ void AutomatedRssDownloader::saveEditedRule()
|
|||||||
}
|
}
|
||||||
RssDownloadRulePtr rule = m_ruleList->getRule(m_editedRule->text());
|
RssDownloadRulePtr rule = m_ruleList->getRule(m_editedRule->text());
|
||||||
if (!rule) {
|
if (!rule) {
|
||||||
|
rule = RssDownloadRulePtr(new RssDownloadRule);
|
||||||
rule->setName(m_editedRule->text());
|
rule->setName(m_editedRule->text());
|
||||||
}
|
}
|
||||||
if (m_editedRule->checkState() == Qt::Unchecked)
|
if (m_editedRule->checkState() == Qt::Unchecked)
|
||||||
|
Loading…
Reference in New Issue
Block a user