Commit 7dfc1b4a authored by Ilkka Ollakka's avatar Ilkka Ollakka

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

parent 406227b5
......@@ -640,7 +640,7 @@ void PLModel::processItemAppend( int i_item, int i_parent )
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;
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