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

Qt4: assume that items are appended to end, so start search from there

(cherry picked from commit 7dfc1b4a)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 3eaee8b8
...@@ -641,7 +641,7 @@ void PLModel::processItemAppend( int i_item, int i_parent ) ...@@ -641,7 +641,7 @@ void PLModel::processItemAppend( int i_item, int i_parent )
PL_UNLOCK; return; PL_UNLOCK; return;
} }
for( pos = 0; pos < p_item->p_parent->i_children; pos++ ) for( pos = p_item->p_parent->i_children - 1; pos >= 0; pos-- )
if( p_item->p_parent->pp_children[pos] == p_item ) break; if( p_item->p_parent->pp_children[pos] == p_item ) break;
newItem = new PLItem( p_item, nodeParentItem ); newItem = new PLItem( p_item, nodeParentItem );
......
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