mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
* Support requesting tracks without valid album.
This commit is contained in:
parent
d7906757ba
commit
316abefc54
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user