[vlc-commits] Qt4: assume that items are appended to end,	so start search from there
    Ilkka Ollakka 
    git at videolan.org
       
    Sun Jan 22 00:39:12 CET 2012
    
    
  
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Jan 22 01:36:04 2012 +0200| [7dfc1b4a65177736e358a2e671b760c81703595f] | committer: Ilkka Ollakka
Qt4: assume that items are appended to end, so start search from there
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7dfc1b4a65177736e358a2e671b760c81703595f
---
 .../gui/qt4/components/playlist/playlist_model.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index 3a14baa..fa9bd97 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -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 );
    
    
More information about the vlc-commits
mailing list