1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 09:19:41 +01:00

* Fixed resolving spinners showing up.

This commit is contained in:
Christian Muehlhaeuser 2012-11-12 07:08:12 +01:00
parent 19a9d9badb
commit 728c8815aa
2 changed files with 4 additions and 2 deletions

View File

@ -140,10 +140,11 @@ ViewManager::createPageForPlaylist( const playlist_ptr& playlist )
view->setDetailedView( pv );
view->setPixmap( pv->pixmap() );
model->loadPlaylist( playlist );
// We need to set the model on the view before loading the playlist, so spinners & co are connected
view->setPlayableModel( model );
pv->setPlaylistModel( model );
model->loadPlaylist( playlist );
playlist->resolve();
return view;

View File

@ -280,10 +280,11 @@ PlaylistModel::insertEntries( const QList< Tomahawk::plentry_ptr >& entries, int
Pipeline::instance()->resolve( queries );
emit loadingStarted();
}
else
finishLoading();
emit endInsertRows();
emit trackCountChanged( rowCount( QModelIndex() ) );
finishLoading();
}