Commit 1fb34f48 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix compile against kio 5.69.0

parent 49b7257e
......@@ -60,6 +60,7 @@ using namespace KCalendarCore;
#include <KIdentityManagement/Identity>
#include <KEmailAddress>
#include <kio_version.h>
#include <MailTransportAkonadi/MessageQueueJob>
#include <MailTransport/TransportManager>
......@@ -391,7 +392,11 @@ public:
if (attachmentUrl.isLocalFile()) {
fileExists = QFile::exists(attachmentUrl.toLocalFile());
} else {
#if KIO_VERSION < QT_VERSION_CHECK(5, 69, 0)
auto job = KIO::stat(attachmentUrl, KIO::StatJob::SourceSide, 0);
#else
auto job = KIO::statDetails(attachmentUrl, KIO::StatJob::SourceSide, KIO::StatDetail::Basic);
#endif
fileExists = job->exec();
}
if (!fileExists) {
......
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