From 4b72ac3022ecf636c3feeaa596b9bbeaf4cc97d0 Mon Sep 17 00:00:00 2001 From: Henning Gruendl Date: Mon, 28 Nov 2022 12:18:42 +0100 Subject: [PATCH] QmlDesigner: Fix states editor dialog not closing Task-number: QDS-8439 Change-Id: Idf633b345de6e4f124b2f621699615ac6d764ceb Reviewed-by: Thomas Hartmann --- share/qtcreator/qmldesigner/newstateseditor/Main.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/share/qtcreator/qmldesigner/newstateseditor/Main.qml b/share/qtcreator/qmldesigner/newstateseditor/Main.qml index 7f20190322a..6be44417a3b 100644 --- a/share/qtcreator/qmldesigner/newstateseditor/Main.qml +++ b/share/qtcreator/qmldesigner/newstateseditor/Main.qml @@ -264,7 +264,10 @@ Rectangle { Connections { target: statesEditorModel - onModelReset: root.menuOpen = 0 + function onModelReset() { + root.menuOpen = 0 + editDialog.close() + } } // This timer is used to delay the current state animation as it didn't work due to the