From 32651b5a1395c924286a76527369aa141611a79a Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 26 Apr 2013 10:50:31 +0200 Subject: [PATCH] * To emulate QNetworkReply's behaviour, we need to emit finished() after an error occured. --- src/libtomahawk/utils/NetworkReply.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libtomahawk/utils/NetworkReply.cpp b/src/libtomahawk/utils/NetworkReply.cpp index 4496a272d..698204030 100644 --- a/src/libtomahawk/utils/NetworkReply.cpp +++ b/src/libtomahawk/utils/NetworkReply.cpp @@ -73,7 +73,10 @@ void NetworkReply::networkLoadFinished() { if ( m_reply->error() != QNetworkReply::NoError ) + { + emit finished(); return; + } QVariant redir = m_reply->attribute( QNetworkRequest::RedirectionTargetAttribute ); if ( redir.isValid() && !redir.toUrl().isEmpty() )