Commit 6d26db70 authored by Allan Sandfeld Jensen's avatar Allan Sandfeld Jensen
Browse files

Undo switch to networkError() getter

Summary: The change was reverted in qtnetwork.

Reviewers: mlaurent

Reviewed By: mlaurent

Subscribers: kde-pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D28010
parent 48f487f0
......@@ -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;
......
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