discomfitor pushed a commit to branch master. http://git.enlightenment.org/apps/empc.git/commit/?id=f35a5f247e6b5446638b14465a20862ee928e702
commit f35a5f247e6b5446638b14465a20862ee928e702 Author: Mike Blumenkrantz <[email protected]> Date: Fri Jun 17 12:06:36 2016 -0400 add safety abort() for items added without a header since this is a bug --- src/bin/empc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/bin/empc.c b/src/bin/empc.c index c96fb10..d1a4d69 100644 --- a/src/bin/empc.c +++ b/src/bin/empc.c @@ -2830,6 +2830,7 @@ queue_list_handler(Eina_Value *value, Eina_Bool update) if (!insert) break; exist = elm_object_item_data_get(insert); if (exist->song_pos < target) break; + //fprintf(stderr, "DEL %s\n", exist->title); elm_object_item_del(insert); } while (insert); prev = elm_genlist_item_prev_get(next); @@ -2858,6 +2859,8 @@ queue_list_handler(Eina_Value *value, Eina_Bool update) /* skip header item... */ it = elm_genlist_item_prev_get(elm_genlist_last_item_get(queue_list)); + //Empd_Empdd_Song *ss = elm_object_item_data_get(it); + //fprintf(stderr, "2863 DEL %s\n", ss->title); elm_object_item_del(it); } } @@ -2948,6 +2951,11 @@ queue_list_handler(Eina_Value *value, Eina_Bool update) itp = NULL; } } + if (!ith) + { + CRI("NO HEADER ITEM FOUND!!! BUG!!"); + abort(); + } if (end || (!itp)) it = elm_genlist_item_append(queue_list, &queue_itc, so, ith, ELM_GENLIST_ITEM_NONE, queue_list_item_select, NULL); else if (itp) --
