From 1d64fea660a435a4104ce0ffb6a3dbaa091c6a9a Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Thu, 3 Mar 2022 21:54:28 +0100 Subject: [PATCH] Port away from KToolInvokation --- part/pageview.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/part/pageview.cpp b/part/pageview.cpp index 7aca68dbd..67eca5e3e 100644 --- a/part/pageview.cpp +++ b/part/pageview.cpp @@ -53,12 +53,17 @@ #include #include #include -#include #include #include #include #include +#include #include +#if KIO_VERSION >= QT_VERSION_CHECK(5, 69, 0) +#include +#else +#include +#endif // system includes #include @@ -4731,7 +4736,12 @@ void PageView::slotHandleWebShortcutAction() void PageView::slotConfigureWebShortcuts() { +#if KIO_VERSION >= QT_VERSION_CHECK(5, 69, 0) + auto *job = new KIO::CommandLauncherJob(QStringLiteral("kcmshell5"), QStringList() << QStringLiteral("webshortcuts")); + job->start(); +#else KToolInvocation::kdeinitExec(QStringLiteral("kcmshell5"), QStringList() << QStringLiteral("webshortcuts")); +#endif } void PageView::slotZoom()