Skip to content

Commit

Permalink
Fix error when closing Attach Node Script window
Browse files Browse the repository at this point in the history
  • Loading branch information
volzhs authored and akien-mga committed Jan 2, 2020
1 parent 1788b22 commit f20b3ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions editor/scene_tree_dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit f20b3ff

Please sign in to comment.