aboutsummaryrefslogtreecommitdiffstats
path: root/src/virtualkeyboard/content
diff options
context:
space:
mode:
authorJarkko Koivikko <jarkko.koivikko@code-q.fi>2015-10-22 16:07:43 +0300
committerJarkko Koivikko <jarkko.koivikko@code-q.fi>2015-10-27 10:13:38 +0000
commit0d2a0f345dd5d19c2f9e1419cb7deaa385aa559f (patch)
treee5a39458f94825309f963341ea91be95b1b98c46 /src/virtualkeyboard/content
parent6135fe7970ea7a1d28ec04a741443a8bb943a6fd (diff)
Fix default locale in a specific case
Reset to default locale if VirtualKeyboardSettings.activeLocales is updated and VirtualKeyboardSettings.locale is set (to some value). This fixes a case where the activeLocales is initially set to some values, which does not include the VirtualKeyboardSettings.locale. Later, when the activeLocales is updated to include the VirtualKeyboardSettings.locale, the keyboard layout would not change immediately to specific locale, as one would expect. This issue was found by running the test cases with CONFIG+=openwnn and observing that test_baseKeyNoModifier did not pass. Change-Id: Iaf3f26a81716a83e936820c5b5f1069916ee81eb Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
Diffstat (limited to 'src/virtualkeyboard/content')
-rw-r--r--src/virtualkeyboard/content/components/Keyboard.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/virtualkeyboard/content/components/Keyboard.qml b/src/virtualkeyboard/content/components/Keyboard.qml
index 2d79e59f..213a7303 100644
--- a/src/virtualkeyboard/content/components/Keyboard.qml
+++ b/src/virtualkeyboard/content/components/Keyboard.qml
@@ -89,7 +89,7 @@ Item {
}
onActiveLocalesChanged: {
updateDefaultLocale()
- if (!isValidLocale(localeIndex))
+ if (!isValidLocale(localeIndex) || VirtualKeyboardSettings.locale)
localeIndex = defaultLocaleIndex
}
}