From 47a7a9e16922b22fb0adc5b138348ea7cf49a212 Mon Sep 17 00:00:00 2001 From: Jarkko Koivikko Date: Thu, 31 Mar 2022 12:47:29 +0300 Subject: Add workaround for QML compiler bug This change is required before the bug in the QML compiler is fixed and the virtual keyboard is ported to declarative type registrations. Without this, there is a runtime error: FunctionPopupList.qml:88:13: Unable to assign [undefined] to bool Task-number: QTBUG-102152 Task-number: QTBUG-100783 Change-Id: Iea5d01f8a089c0dc2c84aab0b04984c736c51380 Reviewed-by: Ulf Hermann --- src/virtualkeyboard/content/components/FunctionPopupList.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/virtualkeyboard/content/components/FunctionPopupList.qml b/src/virtualkeyboard/content/components/FunctionPopupList.qml index 055377ae..c3799f02 100644 --- a/src/virtualkeyboard/content/components/FunctionPopupList.qml +++ b/src/virtualkeyboard/content/components/FunctionPopupList.qml @@ -85,7 +85,7 @@ Item { target: backgroundLoader.item property: "view" value: listView - when: backgroundLoader.item && backgroundLoader.item.hasOwnProperty("view") + when: backgroundLoader.item !== null && backgroundLoader.item.hasOwnProperty("view") } } -- cgit v1.2.3