From 5d0c83ba5ec177217b1ccf9832fd749f2c8b58a5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 4 Feb 2009 22:33:43 +0100 Subject: [PATCH] update: check whether stickers are enabled If stickers are not configured at runtime, don't call sticker_song_delete(). --- src/update.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/update.c b/src/update.c index 276ec5a93..216e40422 100644 --- a/src/update.c +++ b/src/update.c @@ -37,6 +37,7 @@ #include "config.h" #ifdef ENABLE_SQLITE +#include "sticker.h" #include "song_sticker.h" #endif @@ -722,7 +723,8 @@ static void song_delete_event(void) #ifdef ENABLE_SQLITE /* if the song has a sticker, delete it */ - sticker_song_delete(delete); + if (sticker_enabled()) + sticker_song_delete(delete); #endif deleteASongFromPlaylist(&g_playlist, delete);