discomfitor pushed a commit to branch master.

http://git.enlightenment.org/apps/empc.git/commit/?id=8cfc6f6553ec991b67084039f7d259dc17d08a18

commit 8cfc6f6553ec991b67084039f7d259dc17d08a18
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Jun 17 12:08:05 2016 -0400

    ensure empd_song_item exists before trying to show it on list change
---
 src/bin/empc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/empc.c b/src/bin/empc.c
index 145dd00..076ca02 100644
--- a/src/bin/empc.c
+++ b/src/bin/empc.c
@@ -3030,7 +3030,7 @@ empc_queue_list_changes(void *d EINA_UNUSED, int t 
EINA_UNUSED, Empd_Empdd_Queue
 
    it = empd_song_item;
    queue_list_handler(ev->value, EINA_TRUE);
-   if ((!it) || (it != empd_song_item))
+   if (empd_song_item && ((!it) || (it != empd_song_item)))
      elm_genlist_item_show(empd_song_item, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE);
    return ECORE_CALLBACK_RENEW;
 }

-- 


Reply via email to