1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 22:26:32 +02:00

Set createplaylist playlist when creating createdynamicplaylist from json

This commit is contained in:
Leo Franchi
2011-01-15 13:03:56 -05:00
parent 26be23fdd5
commit 14dab933de
2 changed files with 4 additions and 1 deletions

View File

@@ -34,6 +34,8 @@ public:
DynamicPlaylist* p = new DynamicPlaylist( source(), v.toMap().value( "type", QString() ).toString() );
QJson::QObjectHelper::qvariant2qobject( v.toMap(), p );
m_playlist = dynplaylist_ptr( p );
setPlaylist( m_playlist.staticCast<Tomahawk::Playlist>() );
}
private:

View File

@@ -42,6 +42,7 @@ protected:
void createPlaylist( DatabaseImpl* lib, bool dynamic = false );
bool report() { return m_report; }
void setPlaylist( const Tomahawk::playlist_ptr& playlist ) { m_playlist = playlist; }
private:
Tomahawk::playlist_ptr m_playlist;