summaryrefslogtreecommitdiff
path: root/scene/gui/tree.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-09-27 15:54:37 +0200
committerGitHub <noreply@github.com>2019-09-27 15:54:37 +0200
commit5cb926a0011cad1d0365cf7169242d79420e935a (patch)
tree98f72c8ecd57d6f88c971e06357d05e7c3c630bc /scene/gui/tree.cpp
parent171366bab1d7c1800da43dbe7325410de2b889dc (diff)
parent59738e3fa3f01f85782883d025cd96f9b0d44283 (diff)
Merge pull request #29681 from swarnimarun/vs-graph-unification
Visual Script Graph Unification
Diffstat (limited to 'scene/gui/tree.cpp')
-rw-r--r--scene/gui/tree.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index 7102a3cfbf..b01d782f00 100644
--- a/scene/gui/tree.cpp
+++ b/scene/gui/tree.cpp
@@ -2552,7 +2552,9 @@ void Tree::_gui_input(Ref<InputEvent> p_event) {
} else {
Rect2 rect = get_selected()->get_meta("__focus_rect");
if (rect.has_point(Point2(b->get_position().x, b->get_position().y))) {
- edit_selected();
+ if (!edit_selected()) {
+ emit_signal("item_double_clicked");
+ }
} else {
emit_signal("item_double_clicked");
}