aboutsummaryrefslogtreecommitdiffstats
path: root/src/virtualkeyboard/t9writeinputmethod.cpp
diff options
context:
space:
mode:
authorJarkko Koivikko <jarkko.koivikko@code-q.fi>2016-02-17 21:56:47 +0200
committerJarkko Koivikko <jarkko.koivikko@code-q.fi>2016-02-18 16:07:07 +0000
commita08d37af789c5ea837ee2841cc37b9e0c2d62e63 (patch)
tree285ba68c343bfc160c973a876b5a68ab9f66368a /src/virtualkeyboard/t9writeinputmethod.cpp
parentf3b7d334f3e2c042f937d581b1c2edbfad12459a (diff)
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 <rainer.keller@theqtcompany.com>
Diffstat (limited to 'src/virtualkeyboard/t9writeinputmethod.cpp')
-rw-r--r--src/virtualkeyboard/t9writeinputmethod.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}