summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-06-17 12:02:23 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-06-17 12:02:23 -0400
commit37ecf51b4516bfdded2887e90e7d389696ea0d86 (patch)
tree246f0ecc3dcd871c3b3322431d35b7d5bdbaf616 /src
parent024fcefe0f3e3c5428c32cae74638867c06d3ce2 (diff)
use detected insert point as header if it has no subitems during queue handler
fixes an issue where deleting an album could accidentally append new songs without any header item
Diffstat (limited to 'src')
-rw-r--r--src/bin/empc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/empc.c b/src/bin/empc.c
index 429ce11..c96fb10 100644
--- a/src/bin/empc.c
+++ b/src/bin/empc.c
@@ -2922,6 +2922,7 @@ queue_list_handler(Eina_Value *value, Eina_Bool update)
2922 { 2922 {
2923 use = EINA_TRUE; 2923 use = EINA_TRUE;
2924 ith = elm_genlist_item_parent_get(itp); 2924 ith = elm_genlist_item_parent_get(itp);
2925 if (!ith) ith = itp;
2925 } 2926 }
2926 if (itp && (itp == elm_genlist_last_item_get(queue_list))) 2927 if (itp && (itp == elm_genlist_last_item_get(queue_list)))
2927 end = EINA_TRUE; 2928 end = EINA_TRUE;