fileman menu no longer shows symlinks unless the option to show files in menu is enabled

SVN revision: 76734
This commit is contained in:
Mike Blumenkrantz 2012-09-17 06:07:48 +00:00
parent 4036e9a3c5
commit 894054e542
1 changed files with 3 additions and 1 deletions

View File

@ -106,10 +106,12 @@ _e_mod_menu_cleanup_cb(void *obj)
static Eina_Bool
_e_mod_menu_populate_filter(void *data __UNUSED__, Eio_File *handler __UNUSED__, const Eina_File_Direct_Info *info)
{
struct stat st;
/* don't show .dotfiles */
if (fileman_config->view.menu_shows_files)
return (info->path[info->name_start] != '.');
return (info->path[info->name_start] != '.') && (info->type == EINA_FILE_DIR);
if (lstat(info->path, &st)) return EINA_FALSE;
return (info->path[info->name_start] != '.') && (info->type == EINA_FILE_DIR) && (!S_ISLNK(st.st_mode));
}
static void