mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
Only perform load track on the current track
This commit is contained in:
@@ -630,6 +630,7 @@ void
|
||||
AudioEngine::loadTrack( const Tomahawk::result_ptr& result )
|
||||
{
|
||||
Q_D( AudioEngine );
|
||||
tDebug( LOGEXTRA ) << Q_FUNC_INFO << ( result.isNull() ? QString() : result->url() );
|
||||
|
||||
if ( result.isNull() )
|
||||
{
|
||||
@@ -657,6 +658,12 @@ void
|
||||
AudioEngine::performLoadTrack( const Tomahawk::result_ptr& result, QSharedPointer< QIODevice >& io )
|
||||
{
|
||||
Q_D( AudioEngine );
|
||||
if ( currentTrack() != result )
|
||||
{
|
||||
tLog( LOGVERBOSE ) << Q_FUNC_INFO << "Track loaded too late, skip.";
|
||||
return;
|
||||
}
|
||||
tDebug( LOGEXTRA ) << Q_FUNC_INFO << ( result.isNull() ? QString() : result->url() );
|
||||
|
||||
bool err = false;
|
||||
{
|
||||
|
Reference in New Issue
Block a user