mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-22 08:52:12 +02:00
Set createplaylist playlist when creating createdynamicplaylist from json
This commit is contained in:
parent
26be23fdd5
commit
14dab933de
src/libtomahawk/database
@ -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,7 +42,8 @@ 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;
|
||||
bool m_report; // call Playlist::reportCreated?
|
||||
|
Loading…
x
Reference in New Issue
Block a user