summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-04-30 14:28:44 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-04-30 14:28:44 -0400
commit08ee5e766b42b6f95b2b36b0361d40bcc9c80f62 (patch)
treee02e55c9c8ec5b08f82ccab091380c73e58a13f0 /src
parent1e8a11ad2f6d8b968c43d063c07fcabf7a0f8026 (diff)
ensure a header song item is used when inserting a new header song item
fixes blank items after deletion
Diffstat (limited to 'src')
-rw-r--r--src/bin/empc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bin/empc.c b/src/bin/empc.c
index d68efa5..51ec8f1 100644
--- a/src/bin/empc.c
+++ b/src/bin/empc.c
@@ -2922,7 +2922,12 @@ queue_list_handler(Eina_Value *value, Eina_Bool update)
2922 if (end || (!itp)) 2922 if (end || (!itp))
2923 ith = elm_genlist_item_append(queue_list, &header_itc, Empd_Empdd_Song_copy(so), NULL, ELM_GENLIST_ITEM_GROUP, NULL, NULL); 2923 ith = elm_genlist_item_append(queue_list, &header_itc, Empd_Empdd_Song_copy(so), NULL, ELM_GENLIST_ITEM_GROUP, NULL, NULL);
2924 else 2924 else
2925 ith = elm_genlist_item_insert_after(queue_list, &header_itc, Empd_Empdd_Song_copy(so), NULL, itp, ELM_GENLIST_ITEM_GROUP, NULL, NULL); 2925 {
2926 ith = elm_genlist_item_parent_get(itp);
2927 if (!ith) ith = itp;
2928 ith = elm_genlist_item_insert_after(queue_list, &header_itc,
2929 Empd_Empdd_Song_copy(so), NULL, ith, ELM_GENLIST_ITEM_GROUP, NULL, NULL);
2930 }
2926 snprintf(buf, sizeof(buf), "%s:::%s", so->artist, so->album); 2931 snprintf(buf, sizeof(buf), "%s:::%s", so->artist, so->album);
2927 //INF("NEW HEADER(%p): %s", ith, buf); 2932 //INF("NEW HEADER(%p): %s", ith, buf);
2928 eina_hash_list_append(empd_current_queue_headers, buf, ith); 2933 eina_hash_list_append(empd_current_queue_headers, buf, ith);