Commits

zalewa committed 9f13905

- Wadseeker: QNetworkReply::OperationCanceledError will no longer generate
an error message for end-user. This "error" is generated due to the normal
library behavior (numerous calls to QNetworkReply::abort()). It would only
be confusing for end-user.

Comments (0)

Files changed (2)

src/wadseeker/wadretriever/wadretriever.cpp

 
 void WadRetriever::networkQueryError(QNetworkReply* pReply, QNetworkReply::NetworkError code)
 {
-	if (code != QNetworkReply::NoError) 
+	// We shall ignore OperationCanceledError because this error is caused
+	// by a call to QNetworkReply::abort() and it may confuse users.
+	// "Why am I getting this error? Is it a bug? Yeah, it is a bug!"
+	if (code != QNetworkReply::NoError && code != QNetworkReply::OperationCanceledError) 
 	{
 		WadRetrieverInfo* pInfo = findRetrieverInfo(pReply);
 		QString errorString = FixedNetworkAccessManager::networkErrorToString(code);

src/wadseeker/wwwseeker/wwwseeker.cpp

 
 void WWWSeeker::networkQueryError(QNetworkReply* pReply, QNetworkReply::NetworkError code)
 {
-	if (code != QNetworkReply::NoError) 
+	// We shall ignore OperationCanceledError because this error is caused
+	// by a call to QNetworkReply::abort() and it may confuse users.
+	// "Why am I getting this error? Is it a bug? Yeah, it is a bug!"
+	if (code != QNetworkReply::NoError && code != QNetworkReply::OperationCanceledError) 
 	{
 		QString errorString = FixedNetworkAccessManager::networkErrorToString(code);