diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-01-02 10:47:50 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-01-02 10:47:50 -0300 |
commit | b60371074f359591493a015aeb5b4a4f0d70da16 (patch) | |
tree | 90f17b54e0097eeda47dd74893a7bb783256831d /tools/editor | |
parent | 432e2e77692e0c718b35ffddc0602a4193e13239 (diff) |
Properly hide assign/clear dialog, closes #2295
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 6b56f2adf0..31979e5d47 100644 --- a/tools/editor/property_editor.cpp +++ b/tools/editor/property_editor.cpp @@ -927,6 +927,7 @@ void CustomPropertyEditor::_node_path_selected(NodePath p_path) { if (!node) { v=p_path; emit_signal("variant_changed"); + call_deferred("hide"); //to not mess with dialogs return; } @@ -938,6 +939,7 @@ void CustomPropertyEditor::_node_path_selected(NodePath p_path) { v=p_path; emit_signal("variant_changed"); + call_deferred("hide"); //to not mess with dialogs } @@ -1040,6 +1042,7 @@ void CustomPropertyEditor::_action_pressed(int p_which) { v=NodePath(); emit_signal("variant_changed"); + hide(); } } break; case Variant::OBJECT: { |