From: Seunggyun Kim Date: Tue, 25 Jan 2011 03:18:48 +0000 (+0900) Subject: [elm_genlist.c] fix selected item count X-Git-Tag: REL_I9200_20110603-1~440^2~10^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5c0522b6c70f0b66fbd643f42c9237f82a435f6;p=framework%2Fuifw%2Felementary.git [elm_genlist.c] fix selected item count --- diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 6c3d56e..23f1472 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -6160,13 +6160,12 @@ elm_genlist_edit_selected_items_del(Evas_Object *obj) edit_selected_list = elm_genlist_edit_selected_items_get(obj); cnt = eina_list_count(edit_selected_list); - printf("elm_genlist_edit_selected_items_del items selected counts = %d \n", cnt); +// printf("elm_genlist_edit_selected_items_del items selected counts = %d \n", cnt); EINA_LIST_FOREACH(edit_selected_list, l, it) - { - if (it->flags != ELM_GENLIST_ITEM_GROUP) - elm_genlist_item_del(it); - } + { + if (it->flags != ELM_GENLIST_ITEM_GROUP) elm_genlist_item_del(it); + } eina_list_free(edit_selected_list); evas_render(evas_object_evas_get(wd->obj)); @@ -6209,8 +6208,8 @@ elm_genlist_edit_selected_items_get(const Evas_Object *obj) EINA_INLIST_FOREACH(wd->items, it) { - if (it->edit_select_check) list = eina_list_append(list, it); - } + if (it->edit_select_check && it->flags != ELM_GENLIST_ITEM_GROUP) list = eina_list_append(list, it); + } return list; }