Ephoto: Make sure symlinked images work too.

master
Stephen Houston 6 years ago
parent 49f792d962
commit 529d646b5e
  1. 3
      src/bin/ephoto.h
  2. 2
      src/bin/ephoto_main.c

@ -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…
Cancel
Save