mirror of https://github.com/qt/qtdoc.git
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:
parent
7a37fe5c04
commit
58c17ea6a7
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue