diff options
author | axis <qt-info@nokia.com> | 2009-06-10 13:08:37 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2009-06-10 13:08:37 (GMT) |
commit | 84a8024b6b6c81cf20ead9de0bacaeec3ad4e136 (patch) | |
tree | 2695a94f7874c4c7ea7979098700e0fd0de6909e | |
parent | c24d4cb9eca0b06f411bc99be3d232ff1ee27516 (diff) | |
parent | 8ce6f4b96623d03031c65f396b6789520f114edc (diff) | |
download | Qt-84a8024b6b6c81cf20ead9de0bacaeec3ad4e136.zip Qt-84a8024b6b6c81cf20ead9de0bacaeec3ad4e136.tar.gz Qt-84a8024b6b6c81cf20ead9de0bacaeec3ad4e136.tar.bz2 |
Merge branch 'fepCrashOnExitFix'
-rw-r--r-- | src/gui/inputmethod/qcoefepinputcontext_s60.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp index 1dfb012..b183e1b 100644 --- a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp +++ b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp @@ -43,7 +43,6 @@ #include "qcoefepinputcontext_p.h" #include <qapplication.h> -#include <private/qapplication_p.h> #include <qtextformat.h> #include <fepitfr.h> @@ -89,13 +88,9 @@ QCoeFepInputContext::~QCoeFepInputContext() // This is to make sure that the FEP manager "forgets" about us, // otherwise we may get callbacks even after we're destroyed. - // The call is asynchronous though, so we must spin the event loop - // to make sure it gets detected. However we will not spin eventloop - // in case that app is closing, since eventDispatcher is already deleted. - CCoeEnv::Static()->InputCapabilitiesChanged(); - if(!QApplicationPrivate::is_app_closing) { - QApplication::processEvents(); - } + // The call below is essentially equivalent to InputCapabilitiesChanged(), + // but is synchronous, rather than asynchronous. + CCoeEnv::Static()->SyncNotifyFocusObserversOfChangeInFocus(); if (m_fepState) delete m_fepState; |