Commit 579aba0e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile against last kio

parent 47cf6df1
......@@ -23,6 +23,7 @@
#include "ExportManager.h"
#include "settings.h"
#include <kio_version.h>
#include <QDir>
#include <QMimeData>
......@@ -433,8 +434,12 @@ bool ExportManager::isFileExists(const QUrl &url) const
if (!(url.isValid())) {
return false;
}
#if KIO_VERSION < QT_VERSION_CHECK(5, 69, 0)
KIO::StatJob * existsJob = KIO::stat(url, KIO::StatJob::DestinationSide, 0);
#else
KIO::StatJob * existsJob = KIO::statDetails(url, KIO::StatJob::DestinationSide, KIO::StatDetail::Basic);
#endif
existsJob->exec();
return (existsJob->error() == KJob::NoError);
......
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