Ephoto: Make sure symlinked images work too.
This commit is contained in:
parent
49f792d962
commit
529d646b5e
|
@ -353,7 +353,8 @@ _ephoto_eina_file_direct_info_image_useful(const Eina_File_Direct_Info *info)
|
|||
bname = info->path + info->name_start;
|
||||
if (bname[0] == '.')
|
||||
return EINA_FALSE;
|
||||
if ((info->type != EINA_FILE_REG) && (info->type != EINA_FILE_UNKNOWN))
|
||||
if ((info->type != EINA_FILE_REG) && (info->type != EINA_FILE_UNKNOWN) &&
|
||||
info->type != EINA_FILE_LNK)
|
||||
return EINA_FALSE;
|
||||
|
||||
type = strrchr(bname, '.');
|
||||
|
|
|
@ -745,7 +745,7 @@ _ephoto_populate_filter(void *data, Eio_File *handler EINA_UNUSED,
|
|||
{
|
||||
return ecore_file_is_dir(ecore_file_realpath(info->path));
|
||||
}
|
||||
if (!ed->dirs_only)
|
||||
else if (!ed->dirs_only)
|
||||
return _ephoto_eina_file_direct_info_image_useful(info);
|
||||
else
|
||||
return EINA_FALSE;
|
||||
|
|
Loading…
Reference in New Issue