Commit 5bc6d83a authored by Alexander Lohnau's avatar Alexander Lohnau 💬 Committed by Nate Graham
Browse files

Only open KCM in systemsettings if it can be displayed

We have to check for the presence of a X-KDE-System-Settings-Parent-Category entry when opening a KCM in systemsettings.
BUG: 423612

(cherry picked from commit 2ebf8ab3)
parent 6416d65c
......@@ -469,7 +469,8 @@ void ServiceRunner::run(const Plasma::RunnerContext &context, const Plasma::Quer
if (service->serviceTypes().contains(QLatin1String("KCModule"))) {
if (service->parentApp() == QStringLiteral("kinfocenter")) {
service->setExec(QStringLiteral("kinfocenter ") + service->desktopEntryName());
} else {
// We can't display a KCM in systemsettings if it has no parent, BUG: 423612
} else if (!service->property("X-KDE-System-Settings-Parent-Category").toString().isEmpty()) {
service->setExec(QStringLiteral("systemsettings5 ") + service->desktopEntryName());
Markdown is supported
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