From c56c952e23de0e797f23fd9a5e9217fd5eb9d34d Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Thu, 15 May 2014 21:32:04 +0000 Subject: [PATCH] update network error detection as described by rb07 in https://trac.transmissionbt.com/ticket/5514#comment:9 --- qt/mainwin.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qt/mainwin.cc b/qt/mainwin.cc index f3c986acb..8e0b83fcc 100644 --- a/qt/mainwin.cc +++ b/qt/mainwin.cc @@ -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(); -- 2.40.0