aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorHenning Gruendl <henning.gruendl@qt.io>2022-03-04 09:44:52 +0100
committerThomas Hartmann <thomas.hartmann@qt.io>2022-03-09 14:52:36 +0000
commit1960d8f2cf56e1602f33525c930a07cd8d99d9b7 (patch)
tree7fed949cff279eea3afb0fa42cf9195e67a57463 /share
parentc9c2fef43736703b1fcea2fe693b99a37fafa552 (diff)
QmlDesigner: Fix currentItem undefined
Change-Id: I90abc31a9a89834ac6ff5addba407feafa25310d Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'share')
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ExpressionTextField.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ExpressionTextField.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ExpressionTextField.qml
index 87e9a7e3c0..7828e9b427 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ExpressionTextField.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ExpressionTextField.qml
@@ -140,7 +140,7 @@ StudioControls.TextField {
+ 2 : 0)
height: StudioTheme.Values.height - 2 * StudioTheme.Values.border
color: StudioTheme.Values.themeInteraction
- y: listView.currentItem.y
+ y: listView.currentItem?.y ?? 0
}
highlightFollowsCurrentItem: false
}