Commit a619caa2 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Fix opening keyboard KCM

The install location of the KCM changed, adapt to the new id
parent aebaa840
Pipeline #209112 passed with stage
in 55 seconds
......@@ -35,7 +35,7 @@
const QString keyboardKCMName = QStringLiteral("kcm_keyboard");
const QString keyboardKCMName = QStringLiteral("plasma/kcms/systemsettings/kcm_keyboard");
KTouchContext::KTouchContext(KMainWindow* mainWindow, QQuickView* view, QObject *parent) :
QObject(parent),
......@@ -146,7 +146,7 @@ void KTouchContext::showKeyboardKCM()
QPointer<KCMultiDialog> kcm = new KCMultiDialog(m_mainWindow);
kcm->setWindowTitle(i18nc("@title:window", "Configure Keyboard"));
kcm->addModule(keyboardKCMName);
kcm->addModule(KPluginMetaData(keyboardKCMName));
kcm->exec();
delete kcm;
......@@ -184,12 +184,5 @@ void KTouchContext::init()
bool KTouchContext::testKCMAvailibility(const QString& name)
{
KService::Ptr service = KService::serviceByStorageId(name + ".desktop");
if (!service)
{
return false;
}
return service->hasServiceType(QStringLiteral("KCModule")) && !service->noDisplay();
return KPluginMetaData(name).isValid();
}
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