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

* Always connect model and view before loading a playlist so the spinner appears.

This commit is contained in:
Christian Muehlhaeuser
2011-05-20 03:40:28 +02:00
parent c07ab346f4
commit 303c32ba6f
2 changed files with 11 additions and 6 deletions

View File

@@ -152,14 +152,14 @@ ViewManager::queue() const
return m_queueView->queue();
}
PlaylistView*
ViewManager::createPageForPlaylist( const playlist_ptr& pl )
{
PlaylistView* view = new PlaylistView();
PlaylistModel* model = new PlaylistModel();
model->loadPlaylist( pl );
view->setPlaylistModel( model );
model->loadPlaylist( pl );
view->setFrameShape( QFrame::NoFrame );
view->setAttribute( Qt::WA_MacShowFocusRect, 0 );
pl->resolve();