discomfitor pushed a commit to branch master.

http://git.enlightenment.org/apps/empc.git/commit/?id=37ecf51b4516bfdded2887e90e7d389696ea0d86

commit 37ecf51b4516bfdded2887e90e7d389696ea0d86
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Jun 17 12:02:23 2016 -0400

    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
---
 src/bin/empc.c | 1 +
 1 file changed, 1 insertion(+)

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)
                               {
                                  use = EINA_TRUE;
                                  ith = elm_genlist_item_parent_get(itp);
+                                 if (!ith) ith = itp;
                               }
                             if (itp && (itp == 
elm_genlist_last_item_get(queue_list)))
                               end = EINA_TRUE;

-- 


Reply via email to