From 0a9a70ba38edcb630ed774c546613fdacf507eda Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Wed, 27 Aug 2014 21:28:59 +0200 Subject: [PATCH] * Load albums when opening collection. --- src/libtomahawk/ViewManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libtomahawk/ViewManager.cpp b/src/libtomahawk/ViewManager.cpp index 1d591797e..c5c30251f 100644 --- a/src/libtomahawk/ViewManager.cpp +++ b/src/libtomahawk/ViewManager.cpp @@ -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() )