1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-17 19:37:09 +02:00

* Playlist::get now finds any kind of playlist_ptr with that guid.

This commit is contained in:
Christian Muehlhaeuser
2013-04-27 04:45:46 +02:00
parent 96de8e2969
commit 499ba45c73

View File

@@ -168,6 +168,11 @@ Playlist::get( const QString& guid )
foreach( const Tomahawk::source_ptr& source, SourceList::instance()->sources() )
{
p = source->dbCollection()->playlist( guid );
if ( !p )
p = source->dbCollection()->autoPlaylist( guid );
if ( !p )
p = source->dbCollection()->station( guid );
if ( p )
return p;
}