From a08d37af789c5ea837ee2841cc37b9e0c2d62e63 Mon Sep 17 00:00:00 2001 From: Jarkko Koivikko Date: Wed, 17 Feb 2016 21:56:47 +0200 Subject: t9write: Fix condition whether the language is supported The condition checks for the wrong variable, thus does not work as expected. An obvious copy paste error. Change-Id: I1f53ed3d8173377704454102f4d63cd6c1aff857 Reviewed-by: Rainer Keller --- src/virtualkeyboard/t9writeinputmethod.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/virtualkeyboard/t9writeinputmethod.cpp') diff --git a/src/virtualkeyboard/t9writeinputmethod.cpp b/src/virtualkeyboard/t9writeinputmethod.cpp index b557a730..d3490ad5 100644 --- a/src/virtualkeyboard/t9writeinputmethod.cpp +++ b/src/virtualkeyboard/t9writeinputmethod.cpp @@ -288,7 +288,7 @@ public: int isLanguageSupported = 0; decumaDatabaseIsLanguageSupported(sessionSettings.pStaticDB, language, &isLanguageSupported); - if (language == DECUMA_LANG_GSMDEFAULT) { + if (!isLanguageSupported) { qWarning() << "Handwriting input does not support the language" << locale.name(); return false; } -- cgit v1.2.3