Commit 631c0755 authored by Ahmad Samir's avatar Ahmad Samir

Port KRun to OpenUrlJob

Bump KF5 minimum required version to 5.71, as that's where OpenUrlJob was
introduced.
parent 4c6ed17a
......@@ -8,7 +8,7 @@ set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE
project(kgpg VERSION ${RELEASE_SERVICE_VERSION})
set(QT_MIN_VERSION "5.11.0")
set(KF5_MIN_VERSION "5.69.0")
set(KF5_MIN_VERSION "5.71.0")
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
......
......@@ -69,11 +69,12 @@
// #include <KContacts/Key> TODO
#include <KIO/Global>
#include <KIO/ApplicationLauncherJob>
#include <KIO/OpenUrlJob>
#include <KIO/JobUiDelegate>
#include <KJobTrackerInterface>
#include <KLocalizedString>
#include <KMessageBox>
#include <KProcess>
#include <KRun>
#include <KSelectAction>
#include <KService>
#include <KSharedConfig>
......@@ -2812,7 +2813,9 @@ KeysManager::slotOpenKeyUrl()
url.replace(QLatin1String("$$id16$$"), idLC.right(16));
url.replace(QLatin1String("$$fpr$$"), idLC);
new KRun(QUrl(url), this);
auto *job = new KIO::OpenUrlJob(QUrl(url));
job->setUiDelegate(new KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this));
job->start();
}
void
......
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