diff options
Diffstat (limited to 'src/declarative/qml')
-rw-r--r-- | src/declarative/qml/qmlxmlhttprequest.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/declarative/qml/qmlxmlhttprequest.cpp b/src/declarative/qml/qmlxmlhttprequest.cpp index 642c6de..216db6e 100644 --- a/src/declarative/qml/qmlxmlhttprequest.cpp +++ b/src/declarative/qml/qmlxmlhttprequest.cpp @@ -1208,14 +1208,16 @@ void QmlXMLHttpRequest::error(QNetworkReply::NetworkError error) m_request = QNetworkRequest(); destroyNetwork(); - if (error != QNetworkReply::ContentAccessDenied && - error != QNetworkReply::ContentOperationNotPermittedError && - error != QNetworkReply::ContentNotFoundError) { - m_errorFlag = true; - } else { + if (error == QNetworkReply::ContentAccessDenied || + error == QNetworkReply::ContentOperationNotPermittedError || + error == QNetworkReply::ContentNotFoundError || + error == QNetworkReply::AuthenticationRequiredError || + error == QNetworkReply::ContentReSendError) { m_state = Loading; dispatchCallback(); - } + } else { + m_errorFlag = true; + } m_state = Done; dispatchCallback(); |