From 41c79b931f1e8a6cb183538fdfe04d0208c5cdac Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Mon, 5 Dec 2011 08:33:09 +0100 Subject: [PATCH] * In Collection view with filter set: Don't jump to the selected item when expanding an artist. --- src/libtomahawk/playlist/treeproxymodel.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/playlist/treeproxymodel.cpp b/src/libtomahawk/playlist/treeproxymodel.cpp index 84ca91ea0..7bd956e4b 100644 --- a/src/libtomahawk/playlist/treeproxymodel.cpp +++ b/src/libtomahawk/playlist/treeproxymodel.cpp @@ -190,10 +190,15 @@ void TreeProxyModel::filterFinished() { m_artistsFilterCmd = 0; + + if ( PlaylistInterface::filter() != m_filter ) + { + emit filterChanged( m_filter ); + } + PlaylistInterface::setFilter( m_filter ); setFilterRegExp( m_filter ); - emit filterChanged( m_filter ); emit trackCountChanged( trackCount() ); emit filteringFinished(); }