Commit 06d2cdf7 authored by Ilkka Ollakka's avatar Ilkka Ollakka Committed by Jean-Baptiste Kempf

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
(cherry picked from commit f043aa0e)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 9be1c37a
...@@ -655,6 +655,7 @@ void PLModel::processItemAppend( int i_item, int i_parent ) ...@@ -655,6 +655,7 @@ void PLModel::processItemAppend( int i_item, int i_parent )
if( newItem->inputItem() == THEMIM->currentInputItem() ) if( newItem->inputItem() == THEMIM->currentInputItem() )
emit currentIndexChanged( index( newItem, 0 ) ); emit currentIndexChanged( index( newItem, 0 ) );
if( latestSearch.isEmpty() ) return;
search( latestSearch, index( rootItem, 0), false /*FIXME*/ ); 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