elementary/genlist: add to check items at focus_hook

SVN revision: 70893
This commit is contained in:
Hyoyoung Chang 2012-05-09 10:43:35 +00:00
parent 7216eade28
commit b52e855c5a
1 changed files with 1 additions and 1 deletions

View File

@ -535,7 +535,7 @@ _on_focus_hook(void *data __UNUSED__,
{
elm_object_signal_emit(wd->obj, "elm,action,focus", "elm");
evas_object_focus_set(wd->obj, EINA_TRUE);
if ((wd->selected) && (!wd->last_selected_item))
if ((wd->items) && (wd->selected) && (!wd->last_selected_item))
wd->last_selected_item = eina_list_data_get(wd->selected);
}
else