]> granicus.if.org Git - transmission/commitdiff
update network error detection as described by rb07 in https://trac.transmissionbt...
authorJordan Lee <jordan@transmissionbt.com>
Thu, 15 May 2014 21:32:04 +0000 (21:32 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Thu, 15 May 2014 21:32:04 +0000 (21:32 +0000)
qt/mainwin.cc

index f3c986acbb8271868192ffc6da538134f2a41af3..8e0b83fcc217a55a374db0c28d2f8053adb0626f 100644 (file)
@@ -1398,7 +1398,8 @@ void
 TrMainWindow :: onError (QNetworkReply::NetworkError code)
 {
   const bool hadError = myNetworkError;
-  const bool haveError = code != QNetworkReply::NoError;
+  const bool haveError = (code != QNetworkReply::NoError)
+                      && (code != QNetworkReply::UnknownContentError);
 
   myNetworkError = haveError;
   refreshTrayIconSoon();