]> git.sesse.net Git - vlc/commitdiff
Qt: Don't post the initial event of THEMIM, force it.
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 21 Jan 2009 22:50:13 +0000 (23:50 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 21 Jan 2009 22:50:13 +0000 (23:50 +0100)
This avoid a race between menu building and Input Creation in skins. Close #2078.

modules/gui/qt4/input_manager.cpp

index 48262c4722b199959e3a6f0abf20e87c6dabe609..5a643b75a565579614087d528926c16d7ad96585 100644 (file)
@@ -839,8 +839,9 @@ MainInputManager::MainInputManager( intf_thread_t *_p_intf )
     /* emit check if playlist has allready started playing */
     vlc_value_t val;
     var_Change( THEPL, "playlist-current", VLC_VAR_CHOICESCOUNT, &val, NULL );
+
     IMEvent *event = new IMEvent( ItemChanged_Type, val.i_int);
-    QApplication::postEvent( this, static_cast<QEvent*>(event) );
+    customEvent( static_cast<QEvent*>(event) );
 }
 
 MainInputManager::~MainInputManager()