aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--share/qtcreator/qmldesigner/newstateseditor/Main.qml9
1 files changed, 1 insertions, 8 deletions
diff --git a/share/qtcreator/qmldesigner/newstateseditor/Main.qml b/share/qtcreator/qmldesigner/newstateseditor/Main.qml
index 74b50d5f94..0176cc79f6 100644
--- a/share/qtcreator/qmldesigner/newstateseditor/Main.qml
+++ b/share/qtcreator/qmldesigner/newstateseditor/Main.qml
@@ -315,15 +315,8 @@ Rectangle {
standardButtons: Dialog.Apply | Dialog.Cancel
x: editButton.x - Math.max(0, editButton.x + editDialog.width - root.width)
y: toolBar.height
- closePolicy: Popup.NoAutoClose
-
width: Math.min(300, root.width)
-
- function apply() {
- let renamed = statesEditorModel.renameActiveStateGroup(editTextField.text)
- if (renamed)
- editDialog.close()
- }
+ closePolicy: Popup.NoAutoClose
onApplied: editDialog.accept()