Commit 2cd774d2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port krun deprecated method

parent f3a46523
Pipeline #21442 passed with stage
in 42 minutes and 31 seconds
......@@ -2026,8 +2026,15 @@ void ViewerPrivate::checkPhishingUrl()
void ViewerPrivate::executeRunner(const QUrl &url)
{
if (!MessageViewer::Util::handleUrlWithQDesktopServices(url)) {
#if KIO_VERSION >= QT_VERSION_CHECK(5, 71, 0)
KIO::OpenUrlJob *job = new KIO::OpenUrlJob(url);
job->setUiDelegate(new KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, viewer()));
job->setRunExecutables(false);
job->start();
#else
KRun *runner = new KRun(url, viewer()); // will delete itself
runner->setRunExecutables(false);
#endif
}
}
......
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