mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
If we alrady have an IODevice for a HttpResult use this instead of re-requesting the resource again
This commit is contained in:
@@ -760,7 +760,8 @@ AudioEngine::performLoadTrack( const Tomahawk::result_ptr result, const QString
|
|||||||
d->state = Loading;
|
d->state = Loading;
|
||||||
emit loading( d->currentTrack );
|
emit loading( d->currentTrack );
|
||||||
|
|
||||||
if ( !TomahawkUtils::isLocalResult( url ) && !TomahawkUtils::isHttpResult( url )
|
if ( !TomahawkUtils::isLocalResult( url )
|
||||||
|
&& !( TomahawkUtils::isHttpResult( url ) && io.isNull() )
|
||||||
&& !TomahawkUtils::isRtmpResult( url ) )
|
&& !TomahawkUtils::isRtmpResult( url ) )
|
||||||
{
|
{
|
||||||
QSharedPointer<QNetworkReply> qnr = io.objectCast<QNetworkReply>();
|
QSharedPointer<QNetworkReply> qnr = io.objectCast<QNetworkReply>();
|
||||||
|
Reference in New Issue
Block a user