Commit 2defba73 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Load all rename files

parent 75741de5
......@@ -131,9 +131,15 @@ void KDebugSettingsDialog::readCategoriesFiles(const QString &path)
Q_FOREACH (const QString &dir, dirs) {
const QStringList fileNames = QDir(dir).entryList(QStringList() << QStringLiteral("*.renamecategories"));
Q_FOREACH (const QString &file, fileNames) {
if (file != QStringLiteral("kde.categories")) {
mRenameCategoriesList.append(KDebugSettingsUtil::readRenameCategories(dir + file));
}
mRenameCategoriesList.append(KDebugSettingsUtil::readRenameCategories(dir + file));
}
}
//TODO add load rename file from external kde apps.
dirs = QStandardPaths::locateAll(QStandardPaths::GenericConfigLocation, QStringLiteral("qdebug.categories/"), QStandardPaths::LocateDirectory);
Q_FOREACH (const QString &dir, dirs) {
const QStringList fileNames = QDir(dir).entryList(QStringList() << QStringLiteral("*.renamecategories"));
Q_FOREACH (const QString &file, fileNames) {
mRenameCategoriesList.append(KDebugSettingsUtil::readRenameCategories(dir + file));
}
}
......@@ -157,7 +163,6 @@ void KDebugSettingsDialog::readCategoriesFiles(const QString &path)
}
}
//TODO add load rename file from external kde apps.
const QByteArray rulesFilePath = qgetenv("QT_LOGGING_CONF");
if (!rulesFilePath.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