[vlc-commits] Qt: PLModel: Don't emit dataChanged() for out of range columns.
Francois Cartegnie
git at videolan.org
Sun Sep 16 19:36:07 CEST 2012
vlc | branch: master | Francois Cartegnie <fcvlcdev at 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 ******************************/
More information about the vlc-commits
mailing list