Properly hide assign/clear dialog, closes #2295

This commit is contained in:
Juan Linietsky 2016-01-02 10:47:50 -03:00
parent 432e2e7769
commit b60371074f

View file

@ -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: {