1
0
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:
Christian Muehlhaeuser 2012-07-14 09:49:11 +02:00
parent aa82c276c9
commit 2783651537

View File

@ -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;