Use networkError instead of error

It was deprecated.

Task-number: QTBUG-80369
Change-Id: I8374abca51d8b61e33f2b9d74048916dcb9c615b
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
This commit is contained in:
Timur Pocheptsov 2020-01-14 16:13:25 +01:00
parent 7a37fe5c04
commit 58c17ea6a7
1 changed files with 2 additions and 2 deletions

View File

@ -168,8 +168,8 @@ void ImageAnalyzer::fetchURLs()
void ImageAnalyzer::handleReply(QNetworkReply * pReply) void ImageAnalyzer::handleReply(QNetworkReply * pReply)
{ {
m_outstandingFetches--; m_outstandingFetches--;
if (pReply->error()) { if (pReply->networkError()) {
qDebug() << "Error code" << pReply->error(); qDebug() << "Error code" << pReply->networkError();
qDebug() << "Http code" << pReply->attribute(QNetworkRequest::HttpStatusCodeAttribute); qDebug() << "Http code" << pReply->attribute(QNetworkRequest::HttpStatusCodeAttribute);
return; return;
} }