Commit 4e24a9a4 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Port away from deprecated KToolInvocation

In other access KCM we already call the executable directly using QProcess.

Task: https://phabricator.kde.org/T15468
parent e1857766
Pipeline #178961 passed with stage
in 2 minutes and 38 seconds
......@@ -17,7 +17,6 @@
#include "backends/x11/x11_evdev_backend.h"
#include <KLocalizedString>
#include <KToolInvocation>
//#include <KConfig>
#include <KAboutData>
#include <KPluginFactory>
......@@ -25,6 +24,7 @@
#include <QCheckBox>
#include <QDoubleSpinBox>
#include <QFormLayout>
#include <QProcess>
#include <QSpinBox>
#include <QStandardPaths>
#include <QTabWidget>
......@@ -239,7 +239,7 @@ void XlibConfig::save()
group.sync();
// restart kaccess
KToolInvocation::startServiceByDesktopName("kaccess");
QProcess::startDetached(QStringLiteral("kaccess"), {});
Q_EMIT m_parent->changed(false);
}
......
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