]> git.sesse.net Git - vlc/commitdiff
use allready created index instead of creating same index again.
authorIlkka Ollakka <ileoo@videolan.org>
Sun, 6 Apr 2008 13:08:37 +0000 (16:08 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Sun, 6 Apr 2008 18:28:28 +0000 (21:28 +0300)
modules/gui/qt4/components/playlist/playlist_model.cpp

index 99fe3398d5d5d316582f505268ff97cb7e7718a9..8c3026f3f3a2d360ca71b8660755b40833e170d9 100644 (file)
@@ -867,7 +867,7 @@ void PLModel::viewchanged( int meta )
         else
         {
             /* Adding columns */
-            beginInsertColumns( createIndex( 0, 0, rootItem), index, index+1 );
+            beginInsertColumns( parent, index, index+1 );
             rootItem->i_showflags |= meta;
             rootItem->updateColumnHeaders();
             endInsertColumns();