diff --git a/src/calendar/eventfetchjob.cpp b/src/calendar/eventfetchjob.cpp --- a/src/calendar/eventfetchjob.cpp +++ b/src/calendar/eventfetchjob.cpp @@ -166,11 +166,7 @@ ObjectsList EventFetchJob::handleReplyWithItems(const QNetworkReply *reply, const QByteArray& rawData) { -#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0)) if (reply->error() == QNetworkReply::ContentGoneError -#else - if (reply->networkError() == QNetworkReply::ContentGoneError -#endif || reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt() == Gone) { // Full sync required by server, redo request with no updatedMin d->updatedTimestamp = 0;