summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorSami Merila <sami.merila@nokia.com>2011-06-09 10:45:16 (GMT)
committerSami Merila <sami.merila@nokia.com>2011-06-09 10:45:16 (GMT)
commit57092a111a314a3cafdbc5d8302cf716b6bbda36 (patch)
tree479526596847de66a4e7eb7c4e5c2008b79b0da8 /src/gui
parent489baff3d49f7acce8d36dd98d27885ca207d6e7 (diff)
downloadQt-57092a111a314a3cafdbc5d8302cf716b6bbda36.zip
Qt-57092a111a314a3cafdbc5d8302cf716b6bbda36.tar.gz
Qt-57092a111a314a3cafdbc5d8302cf716b6bbda36.tar.bz2
Last word inputted was duplicated after input method hints changed
If input hints change call reset() to avoid duplication of predicted text into input widget. Otherwise input widget will commit the predicted word AND whatever the user has so far typed. Task-number: QTBUG-19689 Reviewed-by: Miikka Heikkinen
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/inputmethod/qcoefepinputcontext_s60.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
index b513365..b15dcac 100644
--- a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
+++ b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
@@ -640,6 +640,7 @@ void QCoeFepInputContext::applyHints(Qt::InputMethodHints hints)
{
using namespace Qt;
+ reset();
commitTemporaryPreeditString();
const bool anynumbermodes = hints & (ImhDigitsOnly | ImhFormattedNumbersOnly | ImhDialableCharactersOnly);