aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickwidgets
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2021-01-14 11:42:20 +0100
committerFabian Kosmale <fabian.kosmale@qt.io>2021-01-15 10:47:05 +0100
commite68b498424f63c1cb6151e4fc6bbc50bac584909 (patch)
tree9ec44f46e38ad0c517b4abb1517d98e33b1797f6 /src/quickwidgets
parentdccd8f0b5ca8f6faefb49718e33f9090243f3202 (diff)
QQmlComponent: Avoid crash when setting initial properties in JS module
In a JS module, we lack a qml context. Thus, we have to check whether qmlContext is null. In that case we use the engine's scriptContext('s ExecutionContext) instead. Fixes: QTBUG-90245 Change-Id: I337e9c7cade472f52fc81c93d1152ff59f8018a5 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/quickwidgets')
0 files changed, 0 insertions, 0 deletions