summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-02-08 11:52:46 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-02-06 21:08:53 -0500
commit86f5a0324e3f25522eb0fa435a5011f03db1592b (patch)
treed3b4baedab60e25ed101ee9d602bd212bf1d326e /src
parent8db5763d087b1fb05ccaf8fe62eb0f91b7f04039 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/bin/empc.c3
1 files changed, 3 insertions, 0 deletions
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)
2635 { 2635 {
2636 Empd_Empdd_Song_free(sog); 2636 Empd_Empdd_Song_free(sog);
2637 elm_object_item_data_set(itg, Empd_Empdd_Song_copy(elm_object_item_data_get(it))); 2637 elm_object_item_data_set(itg, Empd_Empdd_Song_copy(elm_object_item_data_get(it)));
2638 elm_genlist_item_fields_update(itg, EMPC_TEXT_TIME, ELM_GENLIST_ITEM_FIELD_TEXT);
2638 } 2639 }
2639 else if (!elm_genlist_item_subitems_count(itg)) 2640 else if (!elm_genlist_item_subitems_count(itg))
2640 { 2641 {
@@ -2647,6 +2648,8 @@ queue_list_item_del(Empd_Empdd_Song *so, Evas_Object *obj EINA_UNUSED)
2647 queue_list_scroll_item = NULL; 2648 queue_list_scroll_item = NULL;
2648 elm_object_item_del(itg); 2649 elm_object_item_del(itg);
2649 } 2650 }
2651 else
2652 elm_genlist_item_fields_update(itg, EMPC_TEXT_TIME, ELM_GENLIST_ITEM_FIELD_TEXT);
2650 } 2653 }
2651 Empd_Empdd_Song_free(so); 2654 Empd_Empdd_Song_free(so);
2652} 2655}