rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=db22ea08b6a3d55366f06696f11fa7b8acb7377c

commit db22ea08b6a3d55366f06696f11fa7b8acb7377c
Author: Vyacheslav Reutskiy <[email protected]>
Date:   Mon May 30 17:50:54 2016 +0300

    tabs: don't delete home tab when tabs is cleaning
    
    A big problem if home tab was recreated, because we have wrong data
    in global variables. So, not deleted home tab is cheaper in support.
    
    Fixes T3721
    @fix
    
    Change-Id: I7048aebeecb785ed5b3a25b5e1021b7d929c7035
---
 src/bin/ui/tabs.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/bin/ui/tabs.c b/src/bin/ui/tabs.c
index 6cc24ef..b39221c 100644
--- a/src/bin/ui/tabs.c
+++ b/src/bin/ui/tabs.c
@@ -1156,14 +1156,17 @@ tabs_current_tab_close(void)
 void
 tabs_clean(void)
 {
+   Eina_List *l;
    Tabs_Item *item;
 
-   EINA_LIST_FREE(tabs.items, item)
+   /* delete all tab besides home tab */
+   EINA_LIST_FOREACH(tabs.items, l, item)
      {
+        if (!item->group) continue;
         _del_tab(item);
+        tabs.items = eina_list_remove(tabs.items, item);
      }
    tabs.selected = NULL;
-   tabs.items = NULL;
 }
 
 Evas_Object *

-- 


Reply via email to