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

Now we depend against kf5.71

parent 09a45860
Pipeline #23593 canceled with stage
......@@ -34,13 +34,8 @@
#include <QPushButton>
#include <QVBoxLayout>
#include <kio_version.h>
#if KIO_VERSION >= QT_VERSION_CHECK(5, 71, 0)
#include <KIO/JobUiDelegate>
#include <KIO/OpenUrlJob>
#else
#include <KRun>
#endif
#include <QFileDialog>
#include <QTemporaryDir>
#include <KTreeWidgetSearchLine>
......@@ -125,15 +120,10 @@ void ShowArchiveStructureDialog::slotOpenFile()
qCWarning(PIMDATAEXPORTERGUI_LOG) << "Impossible to copy file: " << currentItem->text(0);
return;
}
#if KIO_VERSION >= QT_VERSION_CHECK(5, 71, 0)
KIO::OpenUrlJob *job = new KIO::OpenUrlJob(QUrl::fromLocalFile(fileName));
job->setUiDelegate(new KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this));
job->setRunExecutables(false);
job->start();
#else
KRun *runner = new KRun(QUrl::fromLocalFile(fileName), this); // 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