mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Support requesting tracks without valid album.
This commit is contained in:
@@ -171,8 +171,12 @@ DatabaseCollection::requestTracks( const Tomahawk::album_ptr& album )
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
DatabaseCommand_AllTracks* cmd = new DatabaseCommand_AllTracks( thisCollection );
|
DatabaseCommand_AllTracks* cmd = new DatabaseCommand_AllTracks( thisCollection );
|
||||||
|
|
||||||
|
if ( album )
|
||||||
|
{
|
||||||
cmd->setAlbum( album->weakRef() );
|
cmd->setAlbum( album->weakRef() );
|
||||||
cmd->setSortOrder( DatabaseCommand_AllTracks::AlbumPosition );
|
cmd->setSortOrder( DatabaseCommand_AllTracks::AlbumPosition );
|
||||||
|
}
|
||||||
|
|
||||||
return cmd;
|
return cmd;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user