mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +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;
|
||||
|
||||
DatabaseCommand_AllTracks* cmd = new DatabaseCommand_AllTracks( thisCollection );
|
||||
cmd->setAlbum( album->weakRef() );
|
||||
cmd->setSortOrder( DatabaseCommand_AllTracks::AlbumPosition );
|
||||
|
||||
if ( album )
|
||||
{
|
||||
cmd->setAlbum( album->weakRef() );
|
||||
cmd->setSortOrder( DatabaseCommand_AllTracks::AlbumPosition );
|
||||
}
|
||||
|
||||
return cmd;
|
||||
}
|
||||
|
Reference in New Issue
Block a user