summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWooHyun Jung <wh0705.jung@samsung.com>2015-08-31 16:15:55 +0900
committerAmitesh Singh <amitesh.sh@samsung.com>2015-08-31 15:55:03 +0530
commit0ea553b327e042e40696f8f86da8411c694cdcf9 (patch)
treef4abfac7cb02701020c072e2ab7cdd100d3ebf6e
parentc3a48a3b8ed8381d24b67c9bed42b42fa4bc468c (diff)
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 4eab3c9a8..a0c64d948 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)
553 if (sd->stack && sd->stack->last) 553 if (sd->stack && sd->stack->last)
554 prev_it = EINA_INLIST_CONTAINER_GET(sd->stack->last, 554 prev_it = EINA_INLIST_CONTAINER_GET(sd->stack->last,
555 Elm_Naviframe_Item_Data); 555 Elm_Naviframe_Item_Data);
556 if (!prev_it) goto end; 556 if (!prev_it)
557 {
558 elm_widget_tree_unfocusable_set(VIEW(nit), EINA_TRUE);
559 goto end;
560 }
557 561
558 elm_widget_tree_unfocusable_set(VIEW(prev_it), EINA_FALSE); 562 elm_widget_tree_unfocusable_set(VIEW(prev_it), EINA_FALSE);
559 elm_widget_tree_unfocusable_set(VIEW(nit), EINA_TRUE); 563 elm_widget_tree_unfocusable_set(VIEW(nit), EINA_TRUE);