filepanel: Update directory context after refactoring

This commit is contained in:
Andy Williams 2017-03-27 21:57:44 +01:00
parent 0549f5be36
commit 6cf426e24a
1 changed files with 7 additions and 1 deletions

View File

@ -721,8 +721,14 @@ const char *
edi_filepanel_selected_path_get(Evas_Object *obj EINA_UNUSED)
{
Elm_Object_Item *it;
Edi_Dir_Data *sd;
it = elm_genlist_selected_item_get(list);
return elm_object_item_data_get(it);
sd = elm_object_item_data_get(it);
if (!sd)
return NULL;
return sd->path;
}