summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-06-17 12:08:05 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-06-17 12:08:05 -0400
commit8cfc6f6553ec991b67084039f7d259dc17d08a18 (patch)
tree9d0888fb6f03b7c11a1ec696a7147cf2238d10b7
parent4ce1ea622da35bb45b2bce9d399b6aea3f03bcad (diff)
ensure empd_song_item exists before trying to show it on list change
-rw-r--r--src/bin/empc.c2
1 files changed, 1 insertions, 1 deletions
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
3030 3030
3031 it = empd_song_item; 3031 it = empd_song_item;
3032 queue_list_handler(ev->value, EINA_TRUE); 3032 queue_list_handler(ev->value, EINA_TRUE);
3033 if ((!it) || (it != empd_song_item)) 3033 if (empd_song_item && ((!it) || (it != empd_song_item)))
3034 elm_genlist_item_show(empd_song_item, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE); 3034 elm_genlist_item_show(empd_song_item, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE);
3035 return ECORE_CALLBACK_RENEW; 3035 return ECORE_CALLBACK_RENEW;
3036} 3036}