mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-25 10:46:15 +03:00
Fix 'Remove unused labels'. Closes #4066.
This commit is contained in:
parent
ee6b968f2f
commit
3f9b568808
1 changed files with 0 additions and 4 deletions
|
@ -85,12 +85,8 @@ void RssDownloadRuleList::loadRulesFromVariantHash(const QVariantHash &h)
|
|||
{
|
||||
QVariantHash::ConstIterator it = h.begin();
|
||||
QVariantHash::ConstIterator itend = h.end();
|
||||
QStringList labels = Preferences::instance()->getTorrentLabels();
|
||||
for ( ; it != itend; ++it) {
|
||||
RssDownloadRulePtr rule = RssDownloadRule::fromVariantHash(it.value().toHash());
|
||||
// Hack to readd labels forgotten before fix
|
||||
if (!labels.contains(rule->label()))
|
||||
Preferences::instance()->addTorrentLabelExternal(rule->label());
|
||||
if (rule && !rule->name().isEmpty())
|
||||
saveRule(rule);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue