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:
parent
19a9d9badb
commit
728c8815aa
@ -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;
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user