Commit 5d0c83ba authored by Max Kellermann's avatar Max Kellermann

update: check whether stickers are enabled

If stickers are not configured at runtime, don't call sticker_song_delete().
parent 94685aa9
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include "config.h" #include "config.h"
#ifdef ENABLE_SQLITE #ifdef ENABLE_SQLITE
#include "sticker.h"
#include "song_sticker.h" #include "song_sticker.h"
#endif #endif
...@@ -722,6 +723,7 @@ static void song_delete_event(void) ...@@ -722,6 +723,7 @@ static void song_delete_event(void)
#ifdef ENABLE_SQLITE #ifdef ENABLE_SQLITE
/* if the song has a sticker, delete it */ /* if the song has a sticker, delete it */
if (sticker_enabled())
sticker_song_delete(delete); sticker_song_delete(delete);
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment