jaehyun pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=3e7321565d585bac278f37c60cbb19d6a9a5cace

commit 3e7321565d585bac278f37c60cbb19d6a9a5cace
Author: Jaehyun Cho <jae_hyun....@samsung.com>
Date:   Fri Oct 26 21:06:34 2018 +0900

    elc_naviframe: Fix to show prev item when top item is deleted
    
    When top item is deleted, previous item should be shown.
---
 src/lib/elementary/elc_naviframe.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/elc_naviframe.c 
b/src/lib/elementary/elc_naviframe.c
index f8fbf376f4..65ed1c2710 100644
--- a/src/lib/elementary/elc_naviframe.c
+++ b/src/lib/elementary/elc_naviframe.c
@@ -1192,6 +1192,7 @@ _elm_naviframe_item_efl_object_invalidate(Eo *eo_item, 
Elm_Naviframe_Item_Data *
    Elm_Naviframe_Item_Data *prev_it = NULL;
    Elm_Naviframe_Content_Item_Pair *content_pair;
    Eina_Inlist *l;
+   Eina_Bool top;
 
    ELM_NAVIFRAME_DATA_GET(WIDGET(it), sd);
    if (it->title_prev_btn)
@@ -1227,9 +1228,10 @@ _elm_naviframe_item_efl_object_invalidate(Eo *eo_item, 
Elm_Naviframe_Item_Data *
    if (evas_object_data_get(VIEW(it), "out_of_list"))
      goto end;
 
+   top = (eo_item == elm_naviframe_top_item_get(WIDGET(it)));
    sd->stack = eina_inlist_remove(sd->stack, EINA_INLIST_GET(it));
 
-   if ((elm_naviframe_top_item_get(WIDGET(it)) == eo_item) && 
!sd->on_deletion) /* must raise another one */
+   if (top && !sd->on_deletion) /* must raise another one */
      {
         if (sd->stack && sd->stack->last)
           prev_it = EINA_INLIST_CONTAINER_GET(sd->stack->last,

-- 


Reply via email to