Merge pull request #90514 from jsjtxietian/connection-dialog

Fix connection dialog raise error when it was previously opened in another scene
This commit is contained in:
Rémi Verschelde 2024-04-11 11:03:00 +02:00
commit b2f425fe68
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -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) + ")");
}
/*