From 7a3aff94c338361f62b59122fe9ada1a5d7a7661 Mon Sep 17 00:00:00 2001 From: Mykyta Biliavskyi Date: Fri, 25 Mar 2016 17:22:06 +0900 Subject: [PATCH] Enventor smart: create new empty file in file_set. Fix T3275 --- src/lib/enventor_smart.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/lib/enventor_smart.c b/src/lib/enventor_smart.c index 4138de6..e22f4f2 100644 --- a/src/lib/enventor_smart.c +++ b/src/lib/enventor_smart.c @@ -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);