From 28683237c511eca729dbccb39107e49200f66544 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Thu, 13 Jun 2019 12:15:13 -0300 Subject: [PATCH] Check for inherited methods before attempting to create one when connecting a signal --- editor/connections_dialog.cpp | 31 +++++++++++++++++----- editor/plugins/script_text_editor.cpp | 37 +++++++++++++++------------ 2 files changed, 44 insertions(+), 24 deletions(-) diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp index 569ad0297e2..6d3603f31bb 100644 --- a/editor/connections_dialog.cpp +++ b/editor/connections_dialog.cpp @@ -363,7 +363,7 @@ ConnectDialog::ConnectDialog() { tree->connect("node_selected", this, "_tree_node_selected"); tree->set_connect_to_script_mode(true); - Node *mc = vbc_left->add_margin_child(TTR("Connect To Script:"), tree, true); + Node *mc = vbc_left->add_margin_child(TTR("Connect to Script:"), tree, true); connect_to_label = Object::cast_to