Commit 2ea4c928 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Don't delete category instances

They are created by the plugin after all
parent 26030189
...@@ -171,10 +171,8 @@ void Category::addSubcategory(QVector< Category* >& list, Category* newcat) ...@@ -171,10 +171,8 @@ void Category::addSubcategory(QVector< Category* >& list, Category* newcat)
c->m_notFilters += newcat->notFilters(); c->m_notFilters += newcat->notFilters();
c->m_plugins.unite(newcat->m_plugins); c->m_plugins.unite(newcat->m_plugins);
Q_FOREACH (Category* nc, newcat->subCategories()) { Q_FOREACH (Category* nc, newcat->subCategories()) {
nc->setParent(c);
addSubcategory(c->m_subCategories, nc); addSubcategory(c->m_subCategories, nc);
} }
delete newcat;
return; return;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment