summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWooHyun Jung <wh0705.jung@samsung.com>2015-08-31 16:15:55 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2015-08-31 16:15:55 +0900
commita1566603c62a3aea4e032d161e610227e538a600 (patch)
treec48f327b6c46c79a897adf4ffb550f763179f029
parent074923fd616f614b4d218e4909cfaeb78f94cb1a (diff)
downloadelementary-a1566603c62a3aea4e032d161e610227e538a600.tar.gz
naviframe: fix a focus issue when deleting the first item
Summary: When the first item is deleted, focus should not be reverted back to an object in the content of the item. @fix
-rw-r--r--src/lib/elc_naviframe.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/elc_naviframe.c b/src/lib/elc_naviframe.c
index c9433cc85..b11eda3e9 100644
--- a/src/lib/elc_naviframe.c
+++ b/src/lib/elc_naviframe.c
@@ -553,7 +553,11 @@ _elm_naviframe_item_eo_base_destructor(Eo *eo_item, Elm_Naviframe_Item_Data *it)
if (sd->stack && sd->stack->last)
prev_it = EINA_INLIST_CONTAINER_GET(sd->stack->last,
Elm_Naviframe_Item_Data);
- if (!prev_it) goto end;
+ if (!prev_it)
+ {
+ elm_widget_tree_unfocusable_set(VIEW(nit), EINA_TRUE);
+ goto end;
+ }
elm_widget_tree_unfocusable_set(VIEW(prev_it), EINA_FALSE);
elm_widget_tree_unfocusable_set(VIEW(nit), EINA_TRUE);