From 3321261cf3f2142017b80d1710027c2940fa19fd Mon Sep 17 00:00:00 2001 From: Henning Gruendl Date: Wed, 23 Nov 2022 16:49:45 +0100 Subject: [PATCH] QmlDesigner: Fix DragHandler being disabled The blockDragHandler property got broken when a menu item triggered a model reset as the popup close signal wasn't triggered from the delegate anymore. Task-number: QDS-8133 Change-Id: If135b12a127f5fea8f3f392e0fd6475c4e188e67 Reviewed-by: Reviewed-by: Thomas Hartmann --- share/qtcreator/qmldesigner/newstateseditor/Main.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/share/qtcreator/qmldesigner/newstateseditor/Main.qml b/share/qtcreator/qmldesigner/newstateseditor/Main.qml index e40f7642388..92bf99b86c8 100644 --- a/share/qtcreator/qmldesigner/newstateseditor/Main.qml +++ b/share/qtcreator/qmldesigner/newstateseditor/Main.qml @@ -262,6 +262,11 @@ Rectangle { // the close of the old popup. Using an int keeps track of number of opened popups. property int menuOpen: 0 + Connections { + target: statesEditorModel + onModelReset: root.menuOpen = 0 + } + // This timer is used to delay the current state animation as it didn't work due to the // repeaters item not being positioned in time resulting in 0 x and y position if the grids // row and column were not changed during the layout algorithm .