From 4aa5c80c07f136ee184e82687df7ec1b966226aa Mon Sep 17 00:00:00 2001 From: jsjtxietian Date: Thu, 11 Apr 2024 12:57:58 +0800 Subject: [PATCH] Fix connection dialog raise error when it was previously opened in another scene --- editor/connections_dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp index 2db5b02d63be..de5f9ecf8971 100644 --- a/editor/connections_dialog.cpp +++ b/editor/connections_dialog.cpp @@ -1101,9 +1101,9 @@ void ConnectionsDock::_open_connection_dialog(TreeItem &p_item) { cd.signal = StringName(signal_name); cd.target = dst_node; cd.method = ConnectDialog::generate_method_callback_name(cd.source, signal_name, cd.target); - connect_dialog->popup_dialog(signal_name + "(" + String(", ").join(signal_args) + ")"); connect_dialog->init(cd, signal_args); connect_dialog->set_title(TTR("Connect a Signal to a Method")); + connect_dialog->popup_dialog(signal_name + "(" + String(", ").join(signal_args) + ")"); } /*