Commit a3bac1e7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

We depend against kf5.71

parent 0bf11b02
Pipeline #23589 canceled with stage
...@@ -28,13 +28,8 @@ ...@@ -28,13 +28,8 @@
#include <KShellCompletion> #include <KShellCompletion>
#include <KToolBar> #include <KToolBar>
#include <KMessageBox> #include <KMessageBox>
#include <kio_version.h>
#if KIO_VERSION >= QT_VERSION_CHECK(5, 71, 0)
#include <KIO/JobUiDelegate> #include <KIO/JobUiDelegate>
#include <KIO/OpenUrlJob> #include <KIO/OpenUrlJob>
#else
#include <KRun>
#endif
#include <QUrl> #include <QUrl>
#include <KPIMTextEdit/RichTextComposer> #include <KPIMTextEdit/RichTextComposer>
...@@ -449,16 +444,10 @@ void SignatureConfigurator::slotEdit() ...@@ -449,16 +444,10 @@ void SignatureConfigurator::slotEdit()
// slotEnableEditButton should prevent this assert from being hit: // slotEnableEditButton should prevent this assert from being hit:
assert(!url.isEmpty()); assert(!url.isEmpty());
#if KIO_VERSION >= QT_VERSION_CHECK(5, 71, 0)
KIO::OpenUrlJob *job = new KIO::OpenUrlJob(QUrl::fromLocalFile(url), QStringLiteral("text/plain")); KIO::OpenUrlJob *job = new KIO::OpenUrlJob(QUrl::fromLocalFile(url), QStringLiteral("text/plain"));
job->setUiDelegate(new KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this)); job->setUiDelegate(new KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this));
job->setDeleteTemporaryFile(true); job->setDeleteTemporaryFile(true);
job->start(); job->start();
#else
KRun::RunFlags flags;
flags |= KRun::DeleteTemporaryFiles;
KRun::runUrl(QUrl::fromLocalFile(url), QStringLiteral("text/plain"), this, flags);
#endif
} }
// "use HTML"-checkbox (un)checked // "use HTML"-checkbox (un)checked
......
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