rimmed pushed a commit to branch master.

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

commit ad9e6017735a3337d455c98557979a7859143a73
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Tue Jan 19 19:13:24 2016 +0000

    tabs: clear property so when loaded again it won't show last property
    
    @fix #48113
---
 src/bin/ui/property.c       | 1 +
 src/bin/ui/property_group.c | 3 ++-
 src/bin/ui/tabs.c           | 3 +++
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/bin/ui/property.c b/src/bin/ui/property.c
index aadbbe5..354ed9c 100644
--- a/src/bin/ui/property.c
+++ b/src/bin/ui/property.c
@@ -350,6 +350,7 @@ ui_property_add(Evas_Object *parent)
    evas_object_smart_callback_add(ap.win, SIGNAL_DEMO_TEXT_PART_CLICKED, 
_on_text_part_clicked, pd->layout);
    evas_object_smart_callback_add(ap.win, SIGNAL_DEMO_SWALLOW_PART_CLICKED, 
_on_swallow_part_clicked, pd->layout);
    evas_object_smart_callback_add(ap.win, SIGNAL_DIFFERENT_TAB_CLICKED, 
_on_different_clicked, pd->layout);
+   evas_object_smart_callback_add(ap.win, SIGNAL_TAB_CLOSE, 
_on_different_clicked, pd->layout);
 
    return pd->layout;
 }
diff --git a/src/bin/ui/property_group.c b/src/bin/ui/property_group.c
index d950d2d..26a8f54 100644
--- a/src/bin/ui/property_group.c
+++ b/src/bin/ui/property_group.c
@@ -1387,10 +1387,11 @@ ui_property_group_unset(Evas_Object *property)
                                   _on_clicked, pd);
    evas_object_hide(pd_group.frame);
    evas_object_hide(pd_group.shared_check);
+   _ui_property_program_unset(property);
    _ui_property_part_unset(property);
    elm_scroller_policy_set(pd->scroller, ELM_SCROLLER_POLICY_OFF, 
ELM_SCROLLER_POLICY_OFF);
 
-  evas_object_hide(property);
+   evas_object_hide(property);
 }
 #undef pd_group
 
diff --git a/src/bin/ui/tabs.c b/src/bin/ui/tabs.c
index 685d813..f19651d 100644
--- a/src/bin/ui/tabs.c
+++ b/src/bin/ui/tabs.c
@@ -181,6 +181,9 @@ _del_tab(Tabs_Item *item)
    evas_object_del(item->content);
    history_del(item->group->history);
    item->group->history = NULL;
+   if (item->group->current_part)
+     item->group->current_part->current_item_name = NULL;
+   item->group->current_part = NULL;
    evas_object_smart_callback_call(ap.win, SIGNAL_TAB_CLOSE, item->group);
    free(item);
 }

-- 


Reply via email to