From b6cfe162aaf77a7f27927594a500b894c5c82e03 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Wed, 12 Jun 2013 06:21:19 +0200 Subject: [PATCH] * Reset the model before applying a filter. --- src/libtomahawk/playlist/TreeProxyModel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libtomahawk/playlist/TreeProxyModel.cpp b/src/libtomahawk/playlist/TreeProxyModel.cpp index 4827a8377..0f12bdb69 100644 --- a/src/libtomahawk/playlist/TreeProxyModel.cpp +++ b/src/libtomahawk/playlist/TreeProxyModel.cpp @@ -101,6 +101,7 @@ TreeProxyModel::onModelReset() void TreeProxyModel::setFilter( const QString& pattern ) { + reset(); emit filteringStarted(); m_filter = pattern;