discomfitor pushed a commit to branch master.

http://git.enlightenment.org/apps/empc.git/commit/?id=024fcefe0f3e3c5428c32cae74638867c06d3ce2

commit 024fcefe0f3e3c5428c32cae74638867c06d3ce2
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Jun 10 11:51:50 2016 -0400

    use detected insert point as header during update if no parent item exists
    
    fixes crash when updating the last album in the queue
---
 src/bin/empc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/bin/empc.c b/src/bin/empc.c
index 6547b4c..429ce11 100644
--- a/src/bin/empc.c
+++ b/src/bin/empc.c
@@ -2839,6 +2839,7 @@ queue_list_handler(Eina_Value *value, Eina_Bool update)
                        Empd_Empdd_Song *a, *b;
 
                        parent = elm_genlist_item_parent_get(next);
+                       if (!parent) parent = next;
                        a = elm_object_item_data_get(prev);
                        b = elm_object_item_data_get(parent);
                        /* check whether the previous album can be merged with 
the next one */

-- 


Reply via email to