summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Krammer <kevin.krammer.qnx@kdab.com>2012-02-29 16:08:38 +0100
committerQt by Nokia <qt-info@nokia.com>2012-03-02 22:51:19 +0100
commitf52634f4f41243105d0ac3ade3558c1bbff014c7 (patch)
tree25e7aef358d0f71511b4881918d572b07ec12662
parentad1b5495a2a437d21435a9c321c9abf612cd210e (diff)
Fixed handling of keyboard info messages.
Country and language values were assigned to in the case of decoding failure but left unchanged in case of success. Thus members mLanguageId and mCountryId remained at "en" and "US" respectively instead of being changed to whatever the keyboard sent. Change-Id: I9f48a55d3c431458426c5c4da8e69600948f219b Reviewed-by: Sean Harmer <sh@theharmers.co.uk> Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com> Reviewed-by: Nick Ratelle <nratelle@qnx.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
-rw-r--r--src/plugins/platforms/blackberry/qbbvirtualkeyboard.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/platforms/blackberry/qbbvirtualkeyboard.cpp b/src/plugins/platforms/blackberry/qbbvirtualkeyboard.cpp
index 5e7d1fe3ec..f32d21a3c5 100644
--- a/src/plugins/platforms/blackberry/qbbvirtualkeyboard.cpp
+++ b/src/plugins/platforms/blackberry/qbbvirtualkeyboard.cpp
@@ -275,15 +275,15 @@ void QBBVirtualKeyboard::handleKeyboardInfoMessage()
}
if (pps_decoder_get_string(mDecoder, "languageId", &value) != PPS_DECODER_OK) {
qCritical("QBBVirtualKeyboard: Keyboard PPS languageId field not found");
- mLanguageId = QString::fromLatin1(value);
return;
}
+ mLanguageId = QString::fromLatin1(value);
+
if (pps_decoder_get_string(mDecoder, "countryId", &value) != PPS_DECODER_OK) {
qCritical("QBBVirtualKeyboard: Keyboard PPS size countryId not found");
- mCountryId = QString::fromLatin1(value);
return;
}
-
+ mCountryId = QString::fromLatin1(value);
// HUGE hack, should be removed ASAP.
newHeight -= KEYBOARD_SHADOW_HEIGHT; // We want to ignore the 8 pixel shadow above the keyboard. (PR 88400)