Merge pull request #42082 from aterlamia/show-corrrect-connection-title

Show correct name of signal when editing an existing one
This commit is contained in:
Rémi Verschelde 2020-09-15 15:05:04 +02:00 committed by GitHub
commit dd1c30d807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -754,8 +754,9 @@ void ConnectionsDock::_open_connection_dialog(ConnectDialog::ConnectionData cToE
Node *dst = static_cast<Node *>(cToEdit.target);
if (src && dst) {
const String &signalname = cToEdit.signal;
connect_dialog->set_title(TTR("Edit Connection:") + cToEdit.signal);
connect_dialog->popup_centered();
connect_dialog->popup_dialog(signalname);
connect_dialog->init(cToEdit, true);
}
}