1
0
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:
Christophe Dumez 2012-03-09 15:40:57 -08:00
parent 90b520651b
commit fefc7df910

View File

@ -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)