summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-06-10 11:51:50 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-06-10 11:51:50 -0400
commit024fcefe0f3e3c5428c32cae74638867c06d3ce2 (patch)
tree689cdbaa4caf7eabd63a7bdaf59869f105afd883 /src
parent251376703b6df7c33b30bc22707d55fcf05b61ec (diff)
use detected insert point as header during update if no parent item exists
fixes crash when updating the last album in the queue
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 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)
2839 Empd_Empdd_Song *a, *b; 2839 Empd_Empdd_Song *a, *b;
2840 2840
2841 parent = elm_genlist_item_parent_get(next); 2841 parent = elm_genlist_item_parent_get(next);
2842 if (!parent) parent = next;
2842 a = elm_object_item_data_get(prev); 2843 a = elm_object_item_data_get(prev);
2843 b = elm_object_item_data_get(parent); 2844 b = elm_object_item_data_get(parent);
2844 /* check whether the previous album can be merged with the next one */ 2845 /* check whether the previous album can be merged with the next one */