From 499ba45c73edee887c026fc85060b9f65aa65022 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sat, 27 Apr 2013 04:45:46 +0200 Subject: [PATCH] * Playlist::get now finds any kind of playlist_ptr with that guid. --- src/libtomahawk/Playlist.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libtomahawk/Playlist.cpp b/src/libtomahawk/Playlist.cpp index f3b024b0b..935d95d90 100644 --- a/src/libtomahawk/Playlist.cpp +++ b/src/libtomahawk/Playlist.cpp @@ -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; }