Browse Source

Merge pull request #7873 from volzhs/issue-7820

Fix crash when click icon while editing node name (2.1)
Rémi Verschelde 8 năm trước cách đây
mục cha
commit
f67881bada
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      scene/gui/tree.cpp

+ 1 - 0
scene/gui/tree.cpp

@@ -833,6 +833,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();
 
 }