summaryrefslogtreecommitdiffstats
path: root/editor/connections_dialog.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-07-07 16:01:17 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-07-07 16:01:17 +0200
commit6ed632be2713adaf399e4f2e3856a65380b5cb12 (patch)
treef5d993652f4d04df9e329f41938c230c23582c5b /editor/connections_dialog.cpp
parent443820686cad24bbdd7e7050fa3d3f33f43a7bb5 (diff)
parentd17c522991159260b95621a45383fde408eb83c9 (diff)
downloadredot-engine-6ed632be2713adaf399e4f2e3856a65380b5cb12.tar.gz
Merge pull request #54071 from KoBeWi/infinite_unlimited_connections
Focus current node after connecting
Diffstat (limited to 'editor/connections_dialog.cpp')
-rw-r--r--editor/connections_dialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp
index f4b7b14e99..3965dcd198 100644
--- a/editor/connections_dialog.cpp
+++ b/editor/connections_dialog.cpp
@@ -39,6 +39,7 @@
#include "editor/editor_settings.h"
#include "editor/editor_undo_redo_manager.h"
#include "editor/gui/scene_tree_editor.h"
+#include "editor/node_dock.h"
#include "editor/scene_tree_dock.h"
#include "plugins/script_editor_plugin.h"
#include "scene/gui/button.h"
@@ -1440,6 +1441,7 @@ ConnectionsDock::ConnectionsDock() {
connect_button->connect("pressed", callable_mp(this, &ConnectionsDock::_connect_pressed));
connect_dialog = memnew(ConnectDialog);
+ connect_dialog->connect("connected", callable_mp(NodeDock::get_singleton(), &NodeDock::restore_last_valid_node), CONNECT_DEFERRED);
add_child(connect_dialog);
disconnect_all_dialog = memnew(ConfirmationDialog);