mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
Properly reset ProxyModel
This commit is contained in:
@@ -101,11 +101,13 @@ TreeProxyModel::onModelReset()
|
|||||||
void
|
void
|
||||||
TreeProxyModel::setFilter( const QString& pattern )
|
TreeProxyModel::setFilter( const QString& pattern )
|
||||||
{
|
{
|
||||||
reset();
|
|
||||||
emit filteringStarted();
|
emit filteringStarted();
|
||||||
|
|
||||||
m_filter = pattern;
|
m_filter = pattern;
|
||||||
|
|
||||||
|
beginResetModel();
|
||||||
m_albumsFilter.clear();
|
m_albumsFilter.clear();
|
||||||
|
endResetModel();
|
||||||
|
|
||||||
if ( m_artistsFilterCmd )
|
if ( m_artistsFilterCmd )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user