mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
Properly reset ProxyModel
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
Reference in New Issue
Block a user