WorldClock: Delete View fixes. 89/94189/3
authorRadoslaw Czerski <r.czerski@samsung.com>
Thu, 27 Oct 2016 10:43:56 +0000 (12:43 +0200)
committerLukasz Stanislawski <l.stanislaws@samsung.com>
Fri, 28 Oct 2016 12:42:09 +0000 (05:42 -0700)
"Select all" checkbox is reset on Delete page create.
DeleteContent is invoked in constructor.

Change-Id: I07144aabeede365c1d3e6f0e24d10f94dfa27c51
Signed-off-by: Radoslaw Czerski <r.czerski@samsung.com>
clock/src/View/WorldClockDeleteItemsView.cpp

index 9d946a8..2b869a1 100644 (file)
@@ -222,6 +222,7 @@ WorldClockDeleteItemsView::WorldClockDeleteItemsView(ui::IView &main):
 
 WorldClockDeleteItemsView::~WorldClockDeleteItemsView()
 {
+       DestroyContent();
 }
 
 Evas_Object *WorldClockDeleteItemsView::GetEvasObject()
@@ -275,6 +276,8 @@ void WorldClockDeleteItemsView::CreateSelectAll()
        Elm_Genlist_Item_Class *itc = elm_genlist_item_class_new();
        Elm_Genlist_Item *item;
 
+       all_selected_ = false;
+
        itc->item_style = "select_all";
 
        itc->func.text_get = [](void *data, Evas_Object *obj, const char *part) -> char* {