mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-13 20:39:57 +01:00
* Set PlaylistModel once its loaded only.
This commit is contained in:
parent
aa82c276c9
commit
2783651537
@ -137,13 +137,14 @@ ViewManager::createPageForPlaylist( const playlist_ptr& playlist )
|
||||
{
|
||||
FlexibleView* view = new FlexibleView();
|
||||
PlaylistModel* model = new PlaylistModel();
|
||||
view->setPlayableModel( model );
|
||||
|
||||
PlaylistView* pv = new PlaylistView();
|
||||
pv->setPlaylistModel( model );
|
||||
view->setDetailedView( pv );
|
||||
view->setPixmap( pv->pixmap() );
|
||||
|
||||
model->loadPlaylist( playlist );
|
||||
view->setPlayableModel( model );
|
||||
playlist->resolve();
|
||||
|
||||
return view;
|
||||
|
Loading…
x
Reference in New Issue
Block a user