summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzmike <michael.blumenkrantz@gmail.com>2016-10-05 18:19:59 -0400
committerzmike <michael.blumenkrantz@gmail.com>2016-10-05 18:20:32 -0400
commitcf2057ae96edcbb3afb74ba2d95088e97fdfbca8 (patch)
treed058690a6d02f1a43d9a679c9beb28bfff0d169e
parent00af2f5fbe0b372a3dafeb1c5240a8bdc8e2777e (diff)
avoid crash when showing bg tooltip if callback is reached unexpectedly
-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 3f3afd8..ef69610 100644
--- a/src/bin/empc.c
+++ b/src/bin/empc.c
@@ -771,7 +771,7 @@ bg_update_signal(void)
771static Evas_Object * 771static Evas_Object *
772bg_tooltip_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Evas_Object *tooltip) 772bg_tooltip_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Evas_Object *tooltip)
773{ 773{
774 if (bgchooser) return NULL; 774 if (bgchooser || (!empd_song_item)) return NULL;
775 return tooltip_create(tooltip, empd_song_item); 775 return tooltip_create(tooltip, empd_song_item);
776} 776}
777 777