Commit 72a36a4c authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Port away from deprecated KToolInvocation::startServiceByDesktopName

parent dfe5a947
......@@ -56,6 +56,7 @@ target_link_libraries(kwalletmanager5
KF5::ConfigCore
KF5::Service
KF5::KIOCore
KF5::KIOGui
KF5::JobWidgets
KF5::Archive
KF5::IconThemes
......
......@@ -27,7 +27,6 @@
#include "kwalletmanager_debug.h"
#include <KLocalizedString>
#include <KToolInvocation>
#include <QAction>
#include <KConfig>
#include <KIconLoader>
......@@ -40,7 +39,7 @@
#include <KActionCollection>
#include <KConfigGroup>
#include <KTar>
#include <KIO/CommandLauncherJob>
#include <QRegExp>
#include <QRegExpValidator>
......@@ -397,7 +396,8 @@ void KWalletManager::shuttingDown()
void KWalletManager::setupWallet()
{
KToolInvocation::startServiceByDesktopName(QStringLiteral("kwalletconfig5"));
auto *job = new KIO::CommandLauncherJob(QStringLiteral("kcmshell5"), {QStringLiteral("kwalletconfig5")});
job->start();
}
void KWalletManager::closeAllWallets()
......
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