Commit 2b4737c2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

It was reverted in qt5.15

parent c31d9a7e
......@@ -166,11 +166,7 @@ void EventFetchJob::start()
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;
......
......@@ -92,11 +92,7 @@ void ContactFetchPhotoJob::start()
void ContactFetchPhotoJob::handleReply(const QNetworkReply *reply, const QByteArray &rawData)
{
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
if (reply->error() == QNetworkReply::ContentNotFoundError
#else
if (reply->networkError() == QNetworkReply::ContentNotFoundError
#endif
|| reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt() == NotFound) {
d->contacts.currentProcessed();
d->processNextContact();
......
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