From 529d646b5e1eedf6f99674a89f062e450967ca30 Mon Sep 17 00:00:00 2001 From: Stephen Houston Date: Fri, 5 Aug 2016 21:34:35 -0500 Subject: [PATCH] Ephoto: Make sure symlinked images work too. --- src/bin/ephoto.h | 3 ++- src/bin/ephoto_main.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bin/ephoto.h b/src/bin/ephoto.h index 0f111f7..cb92d4a 100644 --- a/src/bin/ephoto.h +++ b/src/bin/ephoto.h @@ -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, '.'); diff --git a/src/bin/ephoto_main.c b/src/bin/ephoto_main.c index ef6e37d..b90ac08 100644 --- a/src/bin/ephoto_main.c +++ b/src/bin/ephoto_main.c @@ -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;