mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-28 16:20:01 +02:00
* To emulate QNetworkReply's behaviour, we need to emit finished() after an error occured.
This commit is contained in:
@@ -73,7 +73,10 @@ void
|
|||||||
NetworkReply::networkLoadFinished()
|
NetworkReply::networkLoadFinished()
|
||||||
{
|
{
|
||||||
if ( m_reply->error() != QNetworkReply::NoError )
|
if ( m_reply->error() != QNetworkReply::NoError )
|
||||||
|
{
|
||||||
|
emit finished();
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
QVariant redir = m_reply->attribute( QNetworkRequest::RedirectionTargetAttribute );
|
QVariant redir = m_reply->attribute( QNetworkRequest::RedirectionTargetAttribute );
|
||||||
if ( redir.isValid() && !redir.toUrl().isEmpty() )
|
if ( redir.isValid() && !redir.toUrl().isEmpty() )
|
||||||
|
Reference in New Issue
Block a user