summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelvin Louwerse <melvin@ibuildings.nl>2020-09-15 11:54:57 +0200
committerMelvin Louwerse <aterlamia@gmail.com>2020-09-15 12:20:45 +0200
commiteeb6c2e22c56f988a72cdc6455e55d6039d652fc (patch)
treeaf36e0a6017748b6e7d82c68855a30326d7f5bc1
parent6f0fa8519fa44edae6b72852f646cab08dff1e57 (diff)
Show correct name of signal when editing an existing one
Use popup_dialog() instead of popup_centered() to show edit dialog/ With popup_centered it is not possible to change the displayed signal name. When this is not set the previous shown name is show for the current dialog. This is no problem when creating a new conenction as popop_dialog is used there and this would update the title. Fixes #42074
-rw-r--r--editor/connections_dialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp
index 20d29d47f4..d1661fd7b3 100644
--- a/editor/connections_dialog.cpp
+++ b/editor/connections_dialog.cpp
@@ -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);
}
}