From 5e5a95716cc3e08efcb2ff6486c5d86a33979d3c Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sun, 9 Dec 2012 09:10:09 +0100 Subject: [PATCH] * FlexibleView now overwrites GridView's PlaylistInterface. --- src/libtomahawk/playlist/FlexibleView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libtomahawk/playlist/FlexibleView.cpp b/src/libtomahawk/playlist/FlexibleView.cpp index 02aa00dd9..038e6caf1 100644 --- a/src/libtomahawk/playlist/FlexibleView.cpp +++ b/src/libtomahawk/playlist/FlexibleView.cpp @@ -47,6 +47,7 @@ FlexibleView::FlexibleView( QWidget* parent ) // m_trackView->setPlaylistInterface( m_playlistInterface ); m_detailedView->setPlaylistInterface( m_trackView->proxyModel()->playlistInterface() ); + m_gridView->setPlaylistInterface( m_trackView->proxyModel()->playlistInterface() ); m_detailedView->setColumnHidden( PlayableModel::Age, true ); // Hide age column per default m_detailedView->setColumnHidden( PlayableModel::Filesize, true ); // Hide filesize column per default @@ -131,6 +132,8 @@ FlexibleView::setGridView( GridView* view ) delete m_gridView; } + view->setPlaylistInterface( m_trackView->proxyModel()->playlistInterface() ); + m_gridView = view; m_stack->addWidget( view ); }