[plasma/drkonqi] src/coredump/launcher: Simplify KConfig code
Nicolas Fella <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 1bb52ba43e182c607f588dd765896e7c711e2e36 by Nicolas Fella.
Committed on 03/08/2026 at 13:38.
Pushed by nicolasfella into branch 'master'.
Simplify KConfig code
Pass the config file name directly to KConfig instead of resolving the file before
Also don't disable cascading, there's no apparent reason to not do it
M +1 -2 src/coredump/launcher/main.cpp
https://invent.kde.org/plasma/drkonqi/-/commit/1bb52ba43e182c607f588dd765896e7c711e2e36
diff --git a/src/coredump/launcher/main.cpp b/src/coredump/launcher/main.cpp
index 2f2350274..c73af895e 100644
--- a/src/coredump/launcher/main.cpp
+++ b/src/coredump/launcher/main.cpp
@@ -123,8 +123,7 @@ QJsonObject jsonObjectFromKConfigGroup(const KConfigGroup &group)
return metadata;
}
- static const QString configFile = QStandardPaths::locate(QStandardPaths::ConfigLocation, QStringLiteral("drkonqirc"));
- if (!KConfig(configFile, KConfig::SimpleConfig).group(u"General"_s).readEntry(QStringLiteral("IncludeAll"), false)) {
+ if (!KConfig(QStringLiteral("drkonqirc")).group(u"General"_s).readEntry(QStringLiteral("IncludeAll"), false)) {
return metadata;
}