Commit 149d155d authored by Jean-Baptiste Kempf's avatar 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.
parent 44464f27
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment