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:
@@ -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:
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user