summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2016-06-21 13:23:56 +0200
committerMontel Laurent <[email protected]>2016-06-21 13:33:32 +0200
commit40ebb2f72d41c357c562bcee49b8e746b654cd89 (patch)
tree8b599aff6217a20ab8a3395abd08868e834d8523
parent7373d2ff42028e39122f06f07735feb12b5c4284 (diff)
Don't duplicate entries
-rw-r--r--src/loadcategoriesjob.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/loadcategoriesjob.cpp b/src/loadcategoriesjob.cpp
index eefbc08..75ef741 100644
--- a/src/loadcategoriesjob.cpp
+++ b/src/loadcategoriesjob.cpp
@@ -74,12 +74,13 @@ void LoadCategoriesJob::start()
tmp.logName = kdeCat.logName;
mCustomCategories.append(tmp);
}
- if (!qtCategories.isEmpty()) {
- LoggingCategory tmp;
- tmp.description = kdeCat.description;
- tmp.logName = kdeCat.logName;
- mQtKdeCategories.append(tmp);
- }
+ }
+ //FIXME
+ Q_FOREACH (const LoggingCategory &cat, qtCategories) {
+ LoggingCategory tmp;
+ tmp.description = cat.description;
+ tmp.logName = cat.logName;
+ mCustomCategories.append(tmp);
}
}
}