diff options
Diffstat (limited to '')
-rw-r--r-- | src/update.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |