Ephoto: Make sure symlinked images work too.

This commit is contained in:
Stephen Houston 2016-08-05 21:34:35 -05:00
parent 49f792d962
commit 529d646b5e
2 changed files with 3 additions and 2 deletions

View File

@ -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, '.');

View File

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