From 57a2f1e377637abfab9c947abe57ac04a891b205 Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Sun, 1 Mar 2015 14:34:03 +0900 Subject: [PATCH] lib: fix to monitoring new empty file. "empty" in the template as well as empty input file in the command line, were not tracked by enventor so live view couldnt be updated. now it's fixed. --- src/lib/enventor_smart.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/enventor_smart.c b/src/lib/enventor_smart.c index 1b2fa6c..df31c0a 100644 --- a/src/lib/enventor_smart.c +++ b/src/lib/enventor_smart.c @@ -533,7 +533,10 @@ _enventor_object_save(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd, { //Update edc file and try to save if the edc path is different. if (build_edc_path_get() != file) edit_changed_set(pd->ed, EINA_TRUE); - return edit_save(pd->ed, file); + Eina_Bool saved = edit_save(pd->ed, file); + //EDC file is newly generated, we need to reload as the input. + if (saved && !pd->edc_monitor) enventor_object_file_set(obj, file); + return saved; } EOLIAN static void