QmlDesigner: Fix currentItem undefined

Change-Id: I90abc31a9a89834ac6ff5addba407feafa25310d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Henning Gruendl
2022-03-04 09:44:52 +01:00
committed by Thomas Hartmann
parent c9c2fef437
commit 1960d8f2cf

View File

@@ -140,7 +140,7 @@ StudioControls.TextField {
+ 2 : 0) + 2 : 0)
height: StudioTheme.Values.height - 2 * StudioTheme.Values.border height: StudioTheme.Values.height - 2 * StudioTheme.Values.border
color: StudioTheme.Values.themeInteraction color: StudioTheme.Values.themeInteraction
y: listView.currentItem.y y: listView.currentItem?.y ?? 0
} }
highlightFollowsCurrentItem: false highlightFollowsCurrentItem: false
} }