Commit f043aa0e authored by Ilkka Ollakka's avatar Ilkka Ollakka

Qt4: only apply search to inserted items when search isn't empty

This means we don't rebuild() everything with every item when we populate
playlist without search
parent 7dfc1b4a
......@@ -654,6 +654,7 @@ void PLModel::processItemAppend( int i_item, int i_parent )
if( newItem->inputItem() == THEMIM->currentInputItem() )
emit currentIndexChanged( index( newItem, 0 ) );
if( latestSearch.isEmpty() ) return;
search( latestSearch, index( rootItem, 0), false /*FIXME*/ );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment