From 8b3a4d6f305955171a595ad93460346c58df51d7 Mon Sep 17 00:00:00 2001 From: Jarkko Koivikko Date: Mon, 24 Sep 2018 11:12:22 +0300 Subject: Fix word candidate list auto hiding Stop auto hide timer when the word candidate list is not empty. Constantly failing CI bot revealed this error: agent:2018/09/24 07:50:50 build.go:193: FAIL! : inputpanel::tst_plugin::test_zhuyinInputMethod(row 17) 'Expected wordCandidateView to have a currentItem, but it's null. Its property values at the time of failure are: x=0 y=-9.478976 width=400 height=13 count=0 flicking=false moving=false visible=false' returned FALSE. () Task-number: QTBUG-62518 Task-number: QTBUG-61279 Task-number: QTQAINFRA-2226 Change-Id: I775aa834da9809008a34fc760e994610ad6e95a8 Reviewed-by: Mitch Curtis --- src/virtualkeyboard/content/components/Keyboard.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/virtualkeyboard/content/components/Keyboard.qml b/src/virtualkeyboard/content/components/Keyboard.qml index 012ec48a..47e6d9cb 100644 --- a/src/virtualkeyboard/content/components/Keyboard.qml +++ b/src/virtualkeyboard/content/components/Keyboard.qml @@ -619,6 +619,8 @@ Item { var empty = wordCandidateView.model.count === 0 if (empty) wordCandidateViewAutoHideTimer.restart() + else + wordCandidateViewAutoHideTimer.stop() wordCandidateView.empty = empty } } -- cgit v1.2.3