[vlc-devel] commit: Qt: connect to iconView only after it has been created ( Jakob Leben )

git version control git at videolan.org
Thu Jan 28 09:00:33 CET 2010


vlc | branch: master | Jakob Leben <jleben at videolan.org> | Thu Jan 28 07:56:09 2010 +0100| [1adc6693a71387504c20dc148d2d261399391b44] | committer: Jakob Leben 

Qt: connect to iconView only after it has been created

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

 .../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 c6662bf..f9bb59f 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -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 );
 }




More information about the vlc-devel mailing list