From a9212e1ecf67cb7443ba541720900c71cfb38025 Mon Sep 17 00:00:00 2001 From: Hannes Janetzek Date: Wed, 15 Jul 2009 23:14:53 +0000 Subject: [PATCH] 'everything' module: - enable app history again and added fix to not screw it up anymore. maybe e_exehist_add should check that a valid entry is produced before adding it. ei->exe was NULL in e_exehist_sorted_list_get. need to track it down further.. SVN revision: 41357 --- src/modules/everything/evry_plug_apps.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/modules/everything/evry_plug_apps.c b/src/modules/everything/evry_plug_apps.c index 80ebe658b..12032e30d 100644 --- a/src/modules/everything/evry_plug_apps.c +++ b/src/modules/everything/evry_plug_apps.c @@ -161,6 +161,8 @@ _action(Evry_Plugin *p, Evry_Item *it, const char *input) if (app && app->file) input = app->file; + if (!input || strlen(input) < 1) return EVRY_ACTION_CONTINUE; + desktop = efreet_desktop_empty_new(""); if (strchr(input, '%')) { @@ -303,13 +305,13 @@ _fetch(Evry_Plugin *p, const char *input) EINA_LIST_FREE(l, desktop) _item_add(p, desktop, NULL, 5); } - /* else if (!p->items) - * { - * // TODO option for popular/recent - * l = e_exehist_list_get(); - * EINA_LIST_FREE(l, file) - * _item_add(p, NULL, file, 1); - * } */ + else if (!p->items) + { + // TODO option for popular/recent + l = e_exehist_list_get(); + EINA_LIST_FREE(l, file) + _item_add(p, NULL, file, 1); + } if (inst->added) {