vlc | branch: master | Francois Cartegnie <fcvlc...@free.fr> | Sun Sep 16 
19:35:09 2012 +0200| [9195ef85a41297279d872ca54ebed322ae42537a] | committer: 
Francois Cartegnie

Qt: PLModel: Don't emit dataChanged() for out of range columns.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9195ef85a41297279d872ca54ebed322ae42537a
---

 modules/gui/qt4/components/playlist/playlist_model.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp 
b/modules/gui/qt4/components/playlist/playlist_model.cpp
index 86045bc..fcdc89b 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -890,7 +890,7 @@ void PLModel::updateChildren( playlist_item_t *p_node, 
PLItem *root )
 void PLModel::updateTreeItem( PLItem *item )
 {
     if( !item ) return;
-    emit dataChanged( index( item, 0 ) , index( item, columnCount( 
QModelIndex() ) ) );
+    emit dataChanged( index( item, 0 ) , index( item, columnCount( 
QModelIndex() ) - 1 ) );
 }
 
 /************************* Actions ******************************/

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to