enventor: return error properly when failed open a file.
This commit is contained in:
parent
08a9678c1b
commit
c4e1cab2c0
|
@ -397,14 +397,12 @@ _enventor_object_efl_file_file_set(Eo *obj EINA_UNUSED,
|
||||||
build_edc_path_set(file);
|
build_edc_path_set(file);
|
||||||
if (!file) goto err;
|
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();
|
build_edc();
|
||||||
edit_changed_set(pd->main_it->ed, EINA_FALSE);
|
edit_changed_set(pd->main_it->ed, EINA_FALSE);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
eina_error_set( ENVENTOR_FILE_SET_ERROR_GENERIC);
|
eina_error_set(ENVENTOR_FILE_SET_ERROR_GENERIC);
|
||||||
build_edc_path_set(NULL);
|
build_edc_path_set(NULL);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue