[vlc-devel] commit: use allready created index instead of creating same index again. ( Ilkka Ollakka )
git version control
git at videolan.org
Sun Apr 6 20:28:00 CEST 2008
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Apr 6 16:08:37 2008 +0300| [7573989dd5aa4229341437c42dd175365eca3487]
use allready created index instead of creating same index again.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7573989dd5aa4229341437c42dd175365eca3487
---
.../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 99fe339..8c3026f 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -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();
More information about the vlc-devel
mailing list