discomfitor pushed a commit to branch master. http://git.enlightenment.org/apps/empc.git/commit/?id=be6992e6da2779301f6f3852563af5e057be4fdd
commit be6992e6da2779301f6f3852563af5e057be4fdd Author: Mike Blumenkrantz <zm...@osg.samsung.com> Date: Mon Jan 19 17:32:19 2015 -0500 move fs item selected check into ctxpopup show function --- src/bin/empc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/empc.c b/src/bin/empc.c index c616dbb..d45eae3 100644 --- a/src/bin/empc.c +++ b/src/bin/empc.c @@ -1323,6 +1323,7 @@ filesystem_ctxpopup_show(Evas_Object *obj) { Evas_Object *ctx; + if (!elm_gengrid_selected_items_get(eina_list_last_data_get(filesystems))) return; ctxpopup = ctx = ctxpopup_add(obj, "filesystem"); elm_ctxpopup_item_append(ctx, "Append selection", NULL, filesystem_button_append, NULL); if ((empd_state == MPD_STATE_PLAY) || (empd_state == MPD_STATE_PAUSE)) @@ -1339,8 +1340,7 @@ filesystem_ctxpopup_show(Evas_Object *obj) static void filesystem_longpress(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { - if (elm_gengrid_selected_items_get(eina_list_last_data_get(filesystems))) - filesystem_ctxpopup_show(obj); + filesystem_ctxpopup_show(obj); } static void @@ -1348,7 +1348,7 @@ filesystem_click(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj E { Evas_Event_Mouse_Down *ev = event_info; - if ((ev->button == 3) && elm_gengrid_selected_items_get(eina_list_last_data_get(filesystems))) + if (ev->button == 3) filesystem_ctxpopup_show(obj); } --