enventor: return error properly when failed open a file.

This commit is contained in:
Hermet Park 2019-02-28 14:07:25 +09:00
parent 08a9678c1b
commit c4e1cab2c0
1 changed files with 2 additions and 4 deletions

View File

@ -397,14 +397,12 @@ _enventor_object_efl_file_file_set(Eo *obj EINA_UNUSED,
build_edc_path_set(file);
if (!file) goto err;
if (!edit_load(pd->main_it->ed, file)) return EINA_FALSE;
if (!edit_load(pd->main_it->ed, file)) goto err;
build_edc();
edit_changed_set(pd->main_it->ed, EINA_FALSE);
return 0;
err:
eina_error_set( ENVENTOR_FILE_SET_ERROR_GENERIC);
eina_error_set(ENVENTOR_FILE_SET_ERROR_GENERIC);
build_edc_path_set(NULL);
return 1;
}