ajwillia-ms pushed a commit to branch master. http://git.enlightenment.org/tools/edi.git/commit/?id=04c06302d0a7f8bad543dedb670975bd47e4cbbd
commit 04c06302d0a7f8bad543dedb670975bd47e4cbbd Author: Al Poole <nets...@gmail.com> Date: Sat Mar 25 22:16:07 2017 +0000 Fix SEGV on right click of file browser that is empty! Reviewers: ajwillia.ms Reviewed By: ajwillia.ms Differential Revision: https://phab.enlightenment.org/D4744 --- src/bin/edi_filepanel.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bin/edi_filepanel.c b/src/bin/edi_filepanel.c index b04d9df..9c0f471 100644 --- a/src/bin/edi_filepanel.c +++ b/src/bin/edi_filepanel.c @@ -182,6 +182,8 @@ _item_clicked_cb(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, it = elm_genlist_at_xy_item_get(obj, ev->output.x, ev->output.y, NULL); sd = elm_object_item_data_get(it); + if (!sd) return; + if (ev->button == 1 && it) { if (ev->flags == EVAS_BUTTON_DOUBLE_CLICK && elm_genlist_item_type_get(it) == ELM_GENLIST_ITEM_TREE) @@ -192,6 +194,8 @@ _item_clicked_cb(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, if (sd->isdir) return; + elm_object_item_focus_set(it, EINA_TRUE); + if (!menu) _item_menu_create(_main_win); --