summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-02-26 20:28:00 +0100
committerGitHub <noreply@github.com>2017-02-26 20:28:00 +0100
commit4d6a3cf7fcd2a7f777ede47120c987f0c545ee80 (patch)
tree949c4c80f72b541fab6e878d380504f3d1cb7ea3
parent3abd4c906dfe6e310b448a0b2a5ecb1c2c25388a (diff)
parent3ae0ffa1829905bdee1744cab8907f497202b14a (diff)
Merge pull request #7874 from volzhs/issue-7820-master
Fix crash when click icon while editing node name
-rw-r--r--scene/gui/tree.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index 7bfc24079b..cd93c13c99 100644
--- a/scene/gui/tree.cpp
+++ b/scene/gui/tree.cpp
@@ -848,6 +848,7 @@ void Tree::update_cache() {
cache.title_button_color = get_color("title_button_color");
v_scroll->set_custom_step(cache.font->get_height());
+ cache.click_item=get_selected();
}