Commit 9a5491ef authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Use kcmshell5 to launch KRunner KCM

BUG: 451999
parent 51287cc2
Pipeline #156658 passed with stage
in 11 minutes and 49 seconds
......@@ -20,7 +20,6 @@ target_link_libraries(krunner
KF5::I18n
KF5::PlasmaQuick
KF5::DBusAddons
KF5::KCMUtils
KF5::Crash
KF5::WaylandClient
KF5::Runner
......
......@@ -17,7 +17,6 @@
#include <QScreen>
#include <KAuthorized>
#include <KCMultiDialog>
#include <KCrash>
#include <KIO/CommandLauncherJob>
#include <KLocalizedString>
......@@ -328,12 +327,8 @@ void View::switchUser()
void View::displayConfiguration()
{
KCMultiDialog *settingsDialog = new KCMultiDialog();
settingsDialog->addModule(KPluginMetaData(QStringLiteral("plasma/kcms/desktop/kcm_krunnersettings")));
connect(settingsDialog, &QDialog::finished, settingsDialog, &QObject::deleteLater);
settingsDialog->show();
auto job = new KIO::CommandLauncherJob(QStringLiteral("kcmshell5"), {QStringLiteral("plasma/kcms/desktop/kcm_krunnersettings")});
job->start();
}
void View::setVisible(bool visible)
......
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