From 6017d0276fb93d249703ab21e00a10a83cf1dbed Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Wed, 24 Jul 2013 11:58:41 +0200 Subject: [PATCH] Properly reset ProxyModel --- src/libtomahawk/playlist/TreeProxyModel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/playlist/TreeProxyModel.cpp b/src/libtomahawk/playlist/TreeProxyModel.cpp index 3eb31ac48..6aea92c4d 100644 --- a/src/libtomahawk/playlist/TreeProxyModel.cpp +++ b/src/libtomahawk/playlist/TreeProxyModel.cpp @@ -101,11 +101,13 @@ TreeProxyModel::onModelReset() void TreeProxyModel::setFilter( const QString& pattern ) { - reset(); emit filteringStarted(); m_filter = pattern; + + beginResetModel(); m_albumsFilter.clear(); + endResetModel(); if ( m_artistsFilterCmd ) {