Commit 2a4c8da4 authored by Nicolas Fella's avatar Nicolas Fella Committed by Merge Service
Browse files

Port CVS manual away from deprecated KToolInvocation

parent 28b80e02
Pipeline #161847 passed with stage
in 56 seconds
......@@ -30,6 +30,7 @@
#include <QStatusBar>
#include <kaboutdata.h>
#include <KIO/ApplicationLauncherJob>
#include <knotification.h>
#include <kshell.h>
#include <kpropertiesdialog.h>
......@@ -1722,7 +1723,9 @@ void CervisiaPart::slotConfigure()
void CervisiaPart::slotCVSInfo()
{
emit setStatusBarText( i18n("Invoking help on CVS") );
KToolInvocation::startServiceByDesktopName("khelpcenter", QString("man:/(1)/cvs"));
auto *job = new KIO::ApplicationLauncherJob(KService::serviceByDesktopName("org.kde.khelpcenter"));
job->setUrls({QUrl(QStringLiteral("man:/(1)/cvs"))});
job->start();
}
......
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