use detected insert point as header during update if no parent item exists

fixes crash when updating the last album in the queue
This commit is contained in:
Mike Blumenkrantz 2016-06-10 11:51:50 -04:00
parent 251376703b
commit 024fcefe0f
1 changed files with 1 additions and 0 deletions

View File

@ -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 */