From cb821f224554fc73a883e4a8dc4e557d5162988f Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Mon, 29 Aug 2022 15:42:38 +0800 Subject: [PATCH] Fix SceneCreateDialog signal connection --- editor/scene_create_dialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/scene_create_dialog.cpp b/editor/scene_create_dialog.cpp index 41de4534169..b502cd024d4 100644 --- a/editor/scene_create_dialog.cpp +++ b/editor/scene_create_dialog.cpp @@ -270,7 +270,7 @@ SceneCreateDialog::SceneCreateDialog() { hb->add_child(scene_name_edit); scene_name_edit->set_h_size_flags(Control::SIZE_EXPAND_FILL); scene_name_edit->connect("text_changed", this, "update_dialog"); - scene_name_edit->connect("text_submitted", this, "accept_create"); + scene_name_edit->connect("text_entered", this, "accept_create"); List extensions; Ref sd = memnew(PackedScene); @@ -293,7 +293,7 @@ SceneCreateDialog::SceneCreateDialog() { root_name_edit->set_placeholder(TTR("Leave empty to use scene name")); root_name_edit->set_h_size_flags(Control::SIZE_EXPAND_FILL); root_name_edit->connect("text_changed", this, "update_dialog"); - root_name_edit->connect("text_submitted", this, "accept_create"); + root_name_edit->connect("text_entered", this, "accept_create"); } Control *spacing = memnew(Control);