]> git.sesse.net Git - vlc/commitdiff
Qt: connect currentChanged signal from model earlier
authorJakob Leben <jleben@videolan.org>
Wed, 27 Jan 2010 11:49:48 +0000 (12:49 +0100)
committerJakob Leben <jleben@videolan.org>
Wed, 27 Jan 2010 11:49:48 +0000 (12:49 +0100)
modules/gui/qt4/components/playlist/standardpanel.cpp

index abcdb5eb8d04e37e53779e89f35daae44ac545bb..9b96215b5f56fd6d672cb77c15f5788d54c4b530 100644 (file)
@@ -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 )