From 75774581cac5ecc0d3da35c605ba189e89752784 Mon Sep 17 00:00:00 2001 From: Hannes Janetzek Date: Tue, 11 May 2010 15:12:41 +0000 Subject: [PATCH] disable direct input of dirs. is buggy SVN revision: 48756 --- src/modules/everything-files/e_mod_main.c | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/src/modules/everything-files/e_mod_main.c b/src/modules/everything-files/e_mod_main.c index 562f1df69..07ee6df8f 100644 --- a/src/modules/everything-files/e_mod_main.c +++ b/src/modules/everything-files/e_mod_main.c @@ -691,14 +691,14 @@ _fetch(Evry_Plugin *plugin, const char *input) { char *path = NULL; - if ((p->command != CMD_SHOW_ROOT) || - ((ecore_file_is_dir(input) ? (path = strdup(input)) : 0) || - ((path = ecore_file_dir_get(input)) && - (strcmp(p->directory, path))))) + if (p->command != CMD_SHOW_ROOT) + /* ((ecore_file_is_dir(input) ? (path = strdup(input)) : 0) || + * ((path = ecore_file_dir_get(input)) && + * (strcmp(p->directory, path))))) */ { _free_files(p); - eina_stringshare_del(p->directory); + IF_RELEASE(p->directory); if (path) { @@ -767,21 +767,18 @@ _fetch(Evry_Plugin *plugin, const char *input) else if (p->command) { /* clear command items */ - EINA_LIST_FREE(p->files, file) - evry_item_free(EVRY_ITEM(file)); + _free_files(p); if (p->command == CMD_SHOW_ROOT) { - if (p->directory) - eina_stringshare_del(p->directory); - + IF_RELEASE(p->directory); p->directory = eina_stringshare_add(e_user_homedir_get()); } - p->show_hidden = EINA_FALSE; - _read_directory(p); - p->command = CMD_NONE; + p->show_hidden = EINA_FALSE; + + _read_directory(p); } if (input && !p->command)