Commit 310f9dd4 authored by David Faure's avatar David Faure
Browse files

Port away from KRun

This requires KF >= 5.71 (released June 2020).
parent 42996dbd
Pipeline #57682 passed with stage
in 27 minutes and 44 seconds
......@@ -11,7 +11,7 @@ set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE
project(cantor VERSION ${RELEASE_SERVICE_VERSION})
set(KF5_MIN_VERSION "5.57.0")
set(KF5_MIN_VERSION "5.71.0")
find_package(ECM 5.15.0 REQUIRED CONFIG)
set(CMAKE_MODULE_PATH ${cantor_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} )
......
......@@ -45,7 +45,8 @@
#include <KNS3/UploadDialog>
#include <KParts/GUIActivateEvent>
#include <KPluginFactory>
#include <KRun>
#include <KIO/OpenUrlJob>
#include <KIO/JobUiDelegate>
#include <KStandardAction>
#include <KToggleAction>
#include <KSelectAction>
......@@ -758,7 +759,9 @@ void CantorPart::showBackendHelp()
auto* backend = m_worksheet->session()->backend();
QUrl url = backend->helpUrl();
qDebug()<<"launching url "<<url;
new KRun(url, widget());
auto *job = new KIO::OpenUrlJob(url);
job->setUiDelegate(new KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, widget()));
job->start();
}
Worksheet* CantorPart::worksheet()
......
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