diff --git a/src/libtomahawk/utils/JspfLoader.cpp b/src/libtomahawk/utils/JspfLoader.cpp index 06a514517..f0a7d75b5 100644 --- a/src/libtomahawk/utils/JspfLoader.cpp +++ b/src/libtomahawk/utils/JspfLoader.cpp @@ -216,9 +216,12 @@ JSPFLoader::gotBody() m_creator, false, m_entries ); + emit ok( m_playlist ); + } else { + if ( !m_entries.isEmpty() ) + emit tracks( m_entries ); } - emit ok( m_playlist ); if ( m_autoDelete ) deleteLater(); diff --git a/src/libtomahawk/utils/JspfLoader.h b/src/libtomahawk/utils/JspfLoader.h index 89c04bb0a..5ce976851 100644 --- a/src/libtomahawk/utils/JspfLoader.h +++ b/src/libtomahawk/utils/JspfLoader.h @@ -50,6 +50,7 @@ public: signals: void failed(); void ok( const Tomahawk::playlist_ptr& ); + void tracks( const QList< Tomahawk::query_ptr > tracks ); public slots: void load( const QUrl& url );