Author: yamakenz
Date: Thu Sep 20 18:44:46 2007
New Revision: 4992
Modified:
trunk/qt/immodule-quiminputcontext.cpp
Log:
* qt/immodule-quiminputcontext.cpp
- (QUimInputContext::QUimInputContext): Fix QUimHelperManager
instantiation timing (no user-visible behavior is changed)
Modified: trunk/qt/immodule-quiminputcontext.cpp
==============================================================================
--- trunk/qt/immodule-quiminputcontext.cpp (original)
+++ trunk/qt/immodule-quiminputcontext.cpp Thu Sep 20 18:44:46 2007
@@ -92,6 +92,10 @@
contextList.append( this );
+ // must be initialized before createUimContext() call
+ if ( !m_HelperManager )
+ m_HelperManager = new QUimHelperManager();
+
if ( imname )
m_uc = createUimContext( imname );
@@ -101,9 +105,6 @@
cwin = new CandidateWindow( 0 );
cwin->setQUimInputContext( this );
cwin->hide();
-
- if ( !m_HelperManager )
- m_HelperManager = new QUimHelperManager();
#ifdef Q_WS_X11
if ( !mTreeTop )