[vlc-devel] commit: qt4: rebuild tree on updateTreeItem (Ilkka Ollakka )

git version control git at videolan.org
Sun Oct 25 13:36:52 CET 2009


vlc | branch: master | Ilkka Ollakka <ileoo at iki.fi> | Sun Oct 25 13:48:44 2009 +0200| [0adb9cebe14e6e3df513e2b79f74232764dab4ac] | committer: Ilkka Ollakka 

qt4: rebuild tree on updateTreeItem

This seems to fix #3114 maybe some other tickets too

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

 .../gui/qt4/components/playlist/playlist_model.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index a61434c..6f762bf 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -803,7 +803,8 @@ 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() ) ) );
+    rebuild();
+    //emit dataChanged( index( item, 0 ) , index( item, columnCount( QModelIndex() ) ) );
 }
 
 /************************* Actions ******************************/




More information about the vlc-devel mailing list