[vlc-devel] commit: Qt: connect currentChanged signal from model earlier (Jakob Leben )

git version control git at videolan.org
Wed Jan 27 14:27:42 CET 2010


vlc | branch: master | Jakob Leben <jleben at videolan.org> | Wed Jan 27 12:49:48 2010 +0100| [4fdd32fab86f3d0a430ed6bc8394007c41d38b7b] | committer: Jakob Leben 

Qt: connect currentChanged signal from model earlier

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

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

diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index abcdb5e..9b96215 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -59,6 +59,8 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
     setMinimumWidth( 300 );
 
     model = new PLModel( p_playlist, p_intf, p_root, this );
+    CONNECT( model, currentChanged( const QModelIndex& ),
+             this, handleExpansion( const QModelIndex& ) );
 
     iconView = NULL;
     treeView = NULL;
@@ -349,8 +351,6 @@ void StandardPLPanel::toggleView()
         treeView->show();
         currentView = treeView;
     }
-    CONNECT( model, currentChanged( const QModelIndex& ),
-             this, handleExpansion( const QModelIndex& ) );
 }
 
 void StandardPLPanel::wheelEvent( QWheelEvent *e )




More information about the vlc-devel mailing list