summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-18 13:43:47 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-18 13:43:47 (GMT)
commitb96ba95992c3cbf68b8fbc70e24deae686082ef7 (patch)
tree961d6ab04da822b6fb5fe7e8a99c243afc09a3ba
parent2defba730357a5182cf3c6492f9f5c957570de0d (diff)
Clear list to avoid to duplicate entries
-rw-r--r--src/kdebugsettingsdialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kdebugsettingsdialog.cpp b/src/kdebugsettingsdialog.cpp
index 1d48853..de40b58 100644
--- a/src/kdebugsettingsdialog.cpp
+++ b/src/kdebugsettingsdialog.cpp
@@ -126,6 +126,7 @@ void KDebugSettingsDialog::readCategoriesFiles(const QString &path)
const QString confAreasFile = QStandardPaths::locate(QStandardPaths::ConfigLocation, QStringLiteral("kde.categories"));
KDebugSettingsUtil::readLoggingCategories(confAreasFile, mCategoriesList, false);
+ mRenameCategoriesList.clear();
// Load *.renamecategories file in QStandardPaths::ConfigLocation for kde apps.
QStringList dirs = QStandardPaths::locateAll(QStandardPaths::ConfigLocation, QString(), QStandardPaths::LocateDirectory);
Q_FOREACH (const QString &dir, dirs) {