mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 23:26:40 +02:00
* Fixed resolving spinners showing up.
This commit is contained in:
@@ -140,10 +140,11 @@ ViewManager::createPageForPlaylist( const playlist_ptr& playlist )
|
|||||||
view->setDetailedView( pv );
|
view->setDetailedView( pv );
|
||||||
view->setPixmap( pv->pixmap() );
|
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 );
|
view->setPlayableModel( model );
|
||||||
pv->setPlaylistModel( model );
|
pv->setPlaylistModel( model );
|
||||||
|
|
||||||
|
model->loadPlaylist( playlist );
|
||||||
playlist->resolve();
|
playlist->resolve();
|
||||||
|
|
||||||
return view;
|
return view;
|
||||||
|
@@ -280,10 +280,11 @@ PlaylistModel::insertEntries( const QList< Tomahawk::plentry_ptr >& entries, int
|
|||||||
Pipeline::instance()->resolve( queries );
|
Pipeline::instance()->resolve( queries );
|
||||||
emit loadingStarted();
|
emit loadingStarted();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
finishLoading();
|
||||||
|
|
||||||
emit endInsertRows();
|
emit endInsertRows();
|
||||||
emit trackCountChanged( rowCount( QModelIndex() ) );
|
emit trackCountChanged( rowCount( QModelIndex() ) );
|
||||||
finishLoading();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user