edje: let's make a difference between file does not exist and no file specified.

This commit is contained in:
Cedric Bail 2013-08-12 08:55:36 +09:00
parent ac26057519
commit 9a637112b4
1 changed files with 9 additions and 1 deletions

View File

@ -338,7 +338,15 @@ _edje_smart_file_set(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
if (ret) *ret = EINA_FALSE;
f = eina_file_open(file, EINA_FALSE);
if (file)
{
f = eina_file_open(file, EINA_FALSE);
if (!f)
{
ed->load_error = EDJE_LOAD_ERROR_DOES_NOT_EXIST;
return ;
}
}
nested = eina_array_new(8);
if (_edje_object_file_set_internal(obj, f, group, NULL, NULL, nested))