Commit 8b64d62e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Now we depend against kf5.71

parent adefbff3
Pipeline #23605 passed with stage
in 19 minutes and 6 seconds
......@@ -26,12 +26,8 @@
#include <KIO/ApplicationLauncherJob>
#include <kio_version.h>
#if KIO_VERSION >= QT_VERSION_CHECK(5, 71, 0)
#include <KIO/JobUiDelegate>
#include <KIO/OpenUrlJob>
#else
#include <KRun>
#endif
#include <KService>
#include <QUrl>
......@@ -105,12 +101,8 @@ bool UriHandler::process(const QString &uri)
return startKAddressbook(uri);
}
} else { // no special URI, let KDE handle it
#if KIO_VERSION >= QT_VERSION_CHECK(5, 71, 0)
KIO::OpenUrlJob *job = new KIO::OpenUrlJob(QUrl(uri));
job->start();
#else
new KRun(QUrl(uri), nullptr);
#endif
}
return false;
......
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