diff options
author | Kevin Krammer <kevin.krammer.qnx@kdab.com> | 2012-02-29 15:08:38 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-02 21:51:19 (GMT) |
commit | f52634f4f41243105d0ac3ade3558c1bbff014c7 (patch) | |
tree | 25e7aef358d0f71511b4881918d572b07ec12662 | |
parent | ad1b5495a2a437d21435a9c321c9abf612cd210e (diff) | |
download | Qt-f52634f4f41243105d0ac3ade3558c1bbff014c7.zip Qt-f52634f4f41243105d0ac3ade3558c1bbff014c7.tar.gz Qt-f52634f4f41243105d0ac3ade3558c1bbff014c7.tar.bz2 |
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.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/platforms/blackberry/qbbvirtualkeyboard.cpp b/src/plugins/platforms/blackberry/qbbvirtualkeyboard.cpp index 5e7d1fe..f32d21a 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) |