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:
parent
e2f069833b
commit
6017d0276f
@ -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 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user