mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 08:34:34 +02:00
* Load albums when opening collection.
This commit is contained in:
@@ -295,12 +295,16 @@ ViewManager::show( const Tomahawk::collection_ptr& collection )
|
||||
view->columnView()->proxyModel()->setStyle( PlayableProxyModel::Collection );
|
||||
TreeModel* model = new TreeModel();
|
||||
PlayableModel* flatModel = new PlayableModel();
|
||||
PlayableModel* albumModel = new PlayableModel();
|
||||
|
||||
view->setTreeModel( model );
|
||||
view->setFlatModel( flatModel );
|
||||
view->setAlbumModel( albumModel );
|
||||
|
||||
model->addCollection( collection );
|
||||
flatModel->appendTracks( collection );
|
||||
albumModel->appendAlbums( collection );
|
||||
|
||||
setPage( view );
|
||||
|
||||
if ( !collection.isNull() )
|
||||
|
Reference in New Issue
Block a user