diff options
author | volzhs <volzhs@gmail.com> | 2019-12-20 15:58:24 +0900 |
---|---|---|
committer | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-01-02 12:31:31 +0100 |
commit | f20b3ff503614682b748ed6f8bb42b6670799250 (patch) | |
tree | 89ad7db0a798661caecfad7a232361e34af2fe3c | |
parent | 1788b22b118db02ed57487c62157f83ab73b4165 (diff) |
Fix error when closing Attach Node Script window
-rw-r--r-- | editor/scene_tree_dock.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index b25984a9f5..dca6087f8b 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -1739,7 +1739,6 @@ void SceneTreeDock::_script_created(Ref<Script> p_script) { void SceneTreeDock::_script_creation_closed() { script_create_dialog->disconnect("script_created", this, "_script_created"); - script_create_dialog->disconnect("popup_hide", this, "_script_creation_closed"); } void SceneTreeDock::_toggle_editable_children_from_selection() { @@ -2618,7 +2617,7 @@ void SceneTreeDock::attach_script_to_selected(bool p_extend) { } script_create_dialog->connect("script_created", this, "_script_created"); - script_create_dialog->connect("popup_hide", this, "_script_creation_closed"); + script_create_dialog->connect("popup_hide", this, "_script_creation_closed", varray(), CONNECT_ONESHOT); script_create_dialog->set_inheritance_base_type("Node"); script_create_dialog->config(inherits, path); script_create_dialog->popup_centered(); |