Commit 05d10118 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Don't load categories for invalid backends

BUG: 397003
parent af0c9083
......@@ -49,6 +49,9 @@ void CategoryModel::populateCategories()
QVector<Category*> ret;
CategoriesReader cr;
Q_FOREACH (const auto backend, backends) {
if (!backend->isValid())
continue;
const QVector<Category*> cats = cr.loadCategoriesFile(backend);
if(ret.isEmpty()) {
......
Supports Markdown
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