diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-05-24 10:50:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-24 10:50:55 +0200 |
commit | 65dd1bf02392adf777ffd1891c8232615cf57a1d (patch) | |
tree | 732e32fb7a991c0e3f5d97ee666e68a3f4c72c01 /editor/connections_dialog.cpp | |
parent | 56dbfcdcbadf2c958d9656e4e3b7443b9bb11be1 (diff) | |
parent | 307427af89d4cbbcf32099f6009739f50c8bd0a0 (diff) |
Merge pull request #47665 from trollodel/tree_more_buttons_signals
Diffstat (limited to 'editor/connections_dialog.cpp')
-rw-r--r-- | editor/connections_dialog.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp index 4cff0ffd3d..6ed723b891 100644 --- a/editor/connections_dialog.cpp +++ b/editor/connections_dialog.cpp @@ -864,7 +864,11 @@ void ConnectionsDock::_handle_slot_menu_option(int p_option) { } } -void ConnectionsDock::_rmb_pressed(Vector2 p_position) { +void ConnectionsDock::_rmb_pressed(Vector2 p_position, MouseButton p_button) { + if (p_button != MouseButton::RIGHT) { + return; + } + TreeItem *item = tree->get_selected(); if (!item) { @@ -1166,7 +1170,7 @@ ConnectionsDock::ConnectionsDock() { connect_dialog->connect("connected", callable_mp(this, &ConnectionsDock::_make_or_edit_connection)); tree->connect("item_selected", callable_mp(this, &ConnectionsDock::_tree_item_selected)); tree->connect("item_activated", callable_mp(this, &ConnectionsDock::_tree_item_activated)); - tree->connect("item_rmb_selected", callable_mp(this, &ConnectionsDock::_rmb_pressed)); + tree->connect("item_mouse_selected", callable_mp(this, &ConnectionsDock::_rmb_pressed)); add_theme_constant_override("separation", 3 * EDSCALE); |