mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
* Simplify code.
This commit is contained in:
@@ -587,12 +587,7 @@ AudioControls::droppedTracks( QList< query_ptr > tracks )
|
|||||||
{
|
{
|
||||||
// queue and play the first no matter what
|
// queue and play the first no matter what
|
||||||
GlobalActionManager::instance()->handlePlayTrack( tracks.first() );
|
GlobalActionManager::instance()->handlePlayTrack( tracks.first() );
|
||||||
|
ViewManager::instance()->queue()->model()->append( tracks );
|
||||||
// just queue the rest
|
|
||||||
for ( int i = 1; i < tracks.size(); i++ )
|
|
||||||
{
|
|
||||||
ViewManager::instance()->queue()->model()->append( tracks[ i ] );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user