discomfitor pushed a commit to branch master. http://git.enlightenment.org/apps/empc.git/commit/?id=86f5a0324e3f25522eb0fa435a5011f03db1592b
commit 86f5a0324e3f25522eb0fa435a5011f03db1592b Author: Mike Blumenkrantz <zm...@osg.samsung.com> Date: Mon Feb 8 11:52:46 2016 -0500 automatically update queue list headers when an item is removed this is done manually in a few places but it's much more convenient to enforce policy in the delete callback --- src/bin/empc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/empc.c b/src/bin/empc.c index 3d08551..8a7ffeb 100644 --- a/src/bin/empc.c +++ b/src/bin/empc.c @@ -2635,6 +2635,7 @@ queue_list_item_del(Empd_Empdd_Song *so, Evas_Object *obj EINA_UNUSED) { Empd_Empdd_Song_free(sog); elm_object_item_data_set(itg, Empd_Empdd_Song_copy(elm_object_item_data_get(it))); + elm_genlist_item_fields_update(itg, EMPC_TEXT_TIME, ELM_GENLIST_ITEM_FIELD_TEXT); } else if (!elm_genlist_item_subitems_count(itg)) { @@ -2647,6 +2648,8 @@ queue_list_item_del(Empd_Empdd_Song *so, Evas_Object *obj EINA_UNUSED) queue_list_scroll_item = NULL; elm_object_item_del(itg); } + else + elm_genlist_item_fields_update(itg, EMPC_TEXT_TIME, ELM_GENLIST_ITEM_FIELD_TEXT); } Empd_Empdd_Song_free(so); } --