]> git.sesse.net Git - vlc/commitdiff
Qt: connect to iconView only after it has been created
authorJakob Leben <jleben@videolan.org>
Thu, 28 Jan 2010 06:56:09 +0000 (07:56 +0100)
committerJakob Leben <jleben@videolan.org>
Thu, 28 Jan 2010 08:00:21 +0000 (09:00 +0100)
modules/gui/qt4/components/playlist/standardpanel.cpp

index c6662bf42eadb701395091e3747e98cd863c2c97..f9bb59fa999e4a0f02a8ccf7da16dd814708de44 100644 (file)
@@ -122,8 +122,6 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
     last_activated_id = -1;
     CONNECT( THEMIM, inputChanged( input_thread_t * ),
              this, handleInputChange( input_thread_t * ) );
-    CONNECT( locationBar, invoked( const QModelIndex & ),
-             iconView, setRootIndex( const QModelIndex & ) );
 }
 
 StandardPLPanel::~StandardPLPanel()
@@ -287,6 +285,8 @@ void StandardPLPanel::createIconView()
              this, popupPlView( const QPoint & ) );
     CONNECT( iconView, activated( const QModelIndex & ),
              this, activate( const QModelIndex & ) );
+    CONNECT( locationBar, invoked( const QModelIndex & ),
+             iconView, setRootIndex( const QModelIndex & ) );
 
     layout->addWidget( iconView, 1, 0, 1, -1 );
 }