projects
/
framework
/
uifw
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea0fe4c
)
[genlist] prevent on_focus_hook at zero items
author
Hyoyoung Chang
<hyoyoung.chang@samsung.com>
Fri, 4 Nov 2011 07:38:38 +0000
(16:38 +0900)
committer
Hyoyoung Chang
<hyoyoung.chang@samsung.com>
Fri, 4 Nov 2011 07:39:48 +0000
(16:39 +0900)
src/lib/elm_genlist.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_genlist.c
b/src/lib/elm_genlist.c
index
2223d54
..
a032a30
100644
(file)
--- a/
src/lib/elm_genlist.c
+++ b/
src/lib/elm_genlist.c
@@
-577,7
+577,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