Commit 8160da92 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile against last qt5.15 without deprecated methods

parent f3bab299
......@@ -92,7 +92,11 @@ 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