]> git.sesse.net Git - vlc/commit
Qt: early instantiation for THEMIM
authorErwan Tulou <erwan10@videolan.org>
Wed, 11 Jun 2014 11:16:36 +0000 (13:16 +0200)
committerErwan Tulou <erwan10@videolan.org>
Wed, 11 Jun 2014 12:52:07 +0000 (14:52 +0200)
commit0e89cd612a2bf0d04f08fffd9ee748e6cc3df842
tree0d2feacde8aad93cec17238245191a212b87ebe6
parent4107b253d4ddbe6d21b8038cb11193eb3bcef21a
Qt: early instantiation for THEMIM

Rather than wait for the first call to THEMIM to instantiate this singleton,
do it explicitly at an early stage of the plugin initialization.

This is useful for Qt as a dialog provider, since otherwise THEMIM doesn't
get a chance to be set up until, e.g. the first call to a popupmenu,
which then makes this menu slightly longer and noticeable to display.

Also, remove the unneeded instantiation in the main_interface. (THEMIM has
already been used a few lines earlier, which makes the call useless).
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/qt4.cpp