浏览代码

-Avoid crash in property editor due to newly out of focus but still valid property edition, fixes #3601

Juan Linietsky 9 年之前
父节点
当前提交
3cce2d6881
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tools/editor/property_editor.cpp

+ 3 - 0
tools/editor/property_editor.cpp

@@ -3197,6 +3197,9 @@ void PropertyEditor::_item_edited() {
 
 
 	TreeItem * item = tree->get_edited();
+	if (!item)
+		return; //it all happened too fast..
+
 	Dictionary d = item->get_metadata(0);
 
 	String name=d["name"];