From f315c9d0c65ec68223ede9fbeff29a385dee7eae Mon Sep 17 00:00:00 2001 From: kobewi Date: Thu, 17 Feb 2022 17:03:41 +0100 Subject: [PATCH] Connect text_submitted of built-in script name --- editor/script_create_dialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp index c60c253a658..4a6c0149427 100644 --- a/editor/script_create_dialog.cpp +++ b/editor/script_create_dialog.cpp @@ -1038,6 +1038,7 @@ ScriptCreateDialog::ScriptCreateDialog() { internal_name = memnew(LineEdit); internal_name->set_h_size_flags(Control::SIZE_EXPAND_FILL); + internal_name->connect("text_submitted", callable_mp(this, &ScriptCreateDialog::_path_submitted)); label = memnew(Label(TTR("Name:"))); gc->add_child(label); gc->add_child(internal_name);