summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-03-20 22:24:41 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-03-20 22:25:32 +0900
commit76b5749ea00b1009a5a9621b76604e4883e0e6e2 (patch)
tree384b55eb0ceac116b1f9764de405bbe0aaa6cadd
parentbcb8a7e8b8e59413f50bedf1761b1b8037b9d92f (diff)
genlist: Fix another issue with insert sorted
Fixes T5274 @fix
-rw-r--r--src/lib/elementary/elm_genlist.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index ade4a3fa01..6c36251f4b 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -6500,9 +6500,10 @@ _elm_genlist_item_sorted_insert(Eo *obj, Elm_Genlist_Data *sd, const Elm_Genlist
6500 { 6500 {
6501 it->parent->item->items = eina_list_append_relative_list 6501 it->parent->item->items = eina_list_append_relative_list
6502 (it->parent->item->items, eo_it, l); 6502 (it->parent->item->items, eo_it, l);
6503 if (rel->item->items && rel->item->expanded) 6503 if (rel->item->items)
6504 { 6504 {
6505 eo_rel = eina_list_last_data_get(rel->item->items); 6505 Eina_List *ll = _list_last_recursive(rel->item->items);
6506 eo_rel = ll->data;
6506 rel = efl_data_scope_get(eo_rel, ELM_GENLIST_ITEM_CLASS); 6507 rel = efl_data_scope_get(eo_rel, ELM_GENLIST_ITEM_CLASS);
6507 } 6508 }
6508 sd->items = eina_inlist_append_relative 6509 sd->items = eina_inlist_append_relative