Skip to content

Commit

Permalink
Merge pull request #90514 from jsjtxietian/connection-dialog
Browse files Browse the repository at this point in the history
Fix connection dialog raise error when it was previously opened in another scene
  • Loading branch information
akien-mga committed Apr 11, 2024
2 parents 2e5d233 + 4aa5c80 commit b2f425f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/connections_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) + ")");
}

/*
Expand Down

0 comments on commit b2f425f

Please sign in to comment.