1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-02-26 21:03:31 +01:00

Properly reset ProxyModel

This commit is contained in:
Teo Mrnjavac 2013-07-24 11:58:41 +02:00
parent e2f069833b
commit 6017d0276f

View File

@ -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 )
{