[vlc-devel] commit: Qt: Don't post the initial event of THEMIM, force it. ( Jean-Baptiste Kempf )

git version control git at videolan.org
Wed Jan 21 23:51:17 CET 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Jan 21 23:50:13 2009 +0100| [149d155d71430839b9f89db48a09c6d2254a7e8f] | committer: Jean-Baptiste Kempf 

Qt: Don't post the initial event of THEMIM, force it.

This avoid a race between menu building and Input Creation in skins. Close #2078.

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

 modules/gui/qt4/input_manager.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index 48262c4..5a643b7 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -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()




More information about the vlc-devel mailing list