浏览代码

Fix crash when click icon while editing node name

volzhs 8 年之前
父节点
当前提交
3ae0ffa182
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      scene/gui/tree.cpp

+ 1 - 0
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();
 
 }