Enventor smart: create new empty file in file_set.

Fix T3275
This commit is contained in:
Mykyta Biliavskyi 2016-03-25 17:22:06 +09:00
parent 9ed5a70ac8
commit 7a3aff94c3
1 changed files with 10 additions and 1 deletions

View File

@ -304,7 +304,16 @@ _enventor_object_efl_file_file_set(Eo *obj EINA_UNUSED,
{
build_edc_path_set(file);
autocomp_target_set(pd->ed);
if (!edit_load(pd->ed, file)) goto err;
if (!file) goto err;
/* Create empty file*/
if (!ecore_file_exists(file))
{
FILE *fp = fopen(file, "w");
fclose(fp);
}
edit_load(pd->ed, file);
build_edc();
edit_changed_set(pd->ed, EINA_FALSE);