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.
This commit is contained in:
ChunEon Park 2015-03-01 14:34:03 +09:00
parent d146547b52
commit 57a2f1e377
1 changed files with 4 additions and 1 deletions

View File

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