Commit 7c770c6e authored by Jarkko Koivikko's avatar Jarkko Koivikko
Browse files

tests: Fix test execution if only one language is configured


test_languagePopupListActiveLocales test will fail with
unhandled exception if only Korean (for example) is configured.

In this case the language button is not found, and calling
virtualKeyClick() function with null parameter causes an
unhandled exception.

Change-Id: Idc5d57fe56423d7a49947f6c02e75d28b7e4ec90
Reviewed-by: default avatarMitch Curtis <mitch.curtis@qt.io>
Showing with 2 additions and 0 deletions
...@@ -368,6 +368,8 @@ InputPanel { ...@@ -368,6 +368,8 @@ InputPanel {
} }
function virtualKeyPress(key) { function virtualKeyPress(key) {
if (!key)
return false
return multiLayoutKeyActionHelper(key, virtualKeyPressOnCurrentLayout) return multiLayoutKeyActionHelper(key, virtualKeyPressOnCurrentLayout)
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment