1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-27 15:50:40 +02:00

* To emulate QNetworkReply's behaviour, we need to emit finished() after an error occured.

This commit is contained in:
Christian Muehlhaeuser
2013-04-26 10:50:31 +02:00
parent 13ab38ae8f
commit 32651b5a13

View File

@@ -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() )