correctly reset empd_songid and header states on item deletion

This commit is contained in:
zmike 2014-04-21 13:35:10 -04:00
parent 1d19015a03
commit ecec057f59
1 changed files with 6 additions and 0 deletions

View File

@ -1148,6 +1148,12 @@ queue_list_item_del(Empd_Empc_Song *so, Evas_Object *obj EINA_UNUSED)
it = eina_hash_set(empd_current_queue, &so->songid, NULL);
itg = elm_genlist_item_parent_get(it);
sog = elm_object_item_data_get(itg);
if (empd_songid == so->songid)
{
empd_songid = -1;
elm_object_item_signal_emit(itg, "empc,state,not_playing", "empc");
elm_genlist_item_fields_update(itg, EMPC_BASE_TEXT_TIME, ELM_GENLIST_ITEM_FIELD_TEXT);
}
if (sog->songid == so->songid)
{
it = elm_genlist_item_next_get(it);