Commit 19930486 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Fix DBus name for KPluginMetaData based KCMs

BUG: 455943
FIXED-IN: 5.25.2
parent 158b860b
Pipeline #196780 passed with stage
in 2 minutes and 31 seconds
......@@ -267,10 +267,14 @@ int main(int _argc, char *_argv[])
// Look in the namespaces for systemsettings/kinfocenter
const static auto knownKCMs = findKCMsMetaData();
const QStringList possibleIds{arg, QStringLiteral("kcm_") + arg, QStringLiteral("kcm") + arg};
bool foundKCM = std::any_of(knownKCMs.begin(), knownKCMs.end(), [&possibleIds, &metaDataList](const KPluginMetaData &data) {
bool foundKCM = std::any_of(knownKCMs.begin(), knownKCMs.end(), [&possibleIds, &metaDataList, &arg, &serviceName](const KPluginMetaData &data) {
bool idMatches = possibleIds.contains(data.pluginId());
if (idMatches) {
metaDataList << data;
if (!serviceName.isEmpty()) {
serviceName += QLatin1Char('_');
}
serviceName += arg;
}
return idMatches;
});
......
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