Commit a2b6587b authored by Laurent Montel's avatar Laurent Montel
Browse files

We depend against kf5.98

parent 6e156eb1
Pipeline #236403 passed with stage
in 1 minute and 46 seconds
......@@ -10,14 +10,8 @@
#include "identity.h"
#include "signaturerichtexteditor_p.h"
#include "kidentitymanagement_debug.h"
#include <KActionCollection>
#include <kio_version.h>
#if KIO_VERSION >= QT_VERSION_CHECK(5, 98, 0)
#include <KIO/JobUiDelegateFactory>
#else
#include <KIO/JobUiDelegate>
#endif
#include <KIO/OpenUrlJob>
#include <KLineEdit>
#include <KLocalizedString>
......@@ -432,11 +426,7 @@ void SignatureConfigurator::slotEdit()
assert(!url.isEmpty());
auto job = new KIO::OpenUrlJob(QUrl::fromLocalFile(url), QStringLiteral("text/plain"));
#if KIO_VERSION >= QT_VERSION_CHECK(5, 98, 0)
job->setUiDelegate(KIO::createDefaultJobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this));
#else
job->setUiDelegate(new KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this));
#endif
job->setDeleteTemporaryFile(true);
job->start();
}
......
Supports Markdown
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