diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-02-08 11:59:44 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-02-08 11:59:44 -0300 |
commit | 3cce2d688196e13f9d16b7e480db1d1b62aa8f84 (patch) | |
tree | 8a3d6cc59b323465692b309ff101e5ad4280928a /tools/editor | |
parent | 9109e41a20a202e405cefc4ca6cb54208366fee9 (diff) |
-Avoid crash in property editor due to newly out of focus but still valid property edition, fixes #3601
Diffstat (limited to 'tools/editor')
-rw-r--r-- | tools/editor/property_editor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/editor/property_editor.cpp b/tools/editor/property_editor.cpp index efc821b874..303604c2fc 100644 --- a/tools/editor/property_editor.cpp +++ b/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"]; |