Commit 58c17ea6 authored by Timur Pocheptsov's avatar Timur Pocheptsov
Browse files

Use networkError instead of error


It was deprecated.

Task-number: QTBUG-80369
Change-Id: I8374abca51d8b61e33f2b9d74048916dcb9c615b
Reviewed-by: default avatarMårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: default avatarPaul Wicking <paul.wicking@qt.io>
Showing with 2 additions and 2 deletions
......@@ -168,8 +168,8 @@ void ImageAnalyzer::fetchURLs()
void ImageAnalyzer::handleReply(QNetworkReply * pReply)
{
m_outstandingFetches--;
if (pReply->error()) {
qDebug() << "Error code" << pReply->error();
if (pReply->networkError()) {
qDebug() << "Error code" << pReply->networkError();
qDebug() << "Http code" << pReply->attribute(QNetworkRequest::HttpStatusCodeAttribute);
return;
}
......
Supports Markdown
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