update: check whether stickers are enabled
If stickers are not configured at runtime, don't call sticker_song_delete().
This commit is contained in:
parent
94685aa9bd
commit
5d0c83ba5e
|
@ -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,7 +723,8 @@ 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 */
|
||||||
sticker_song_delete(delete);
|
if (sticker_enabled())
|
||||||
|
sticker_song_delete(delete);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
deleteASongFromPlaylist(&g_playlist, delete);
|
deleteASongFromPlaylist(&g_playlist, delete);
|
||||||
|
|
Loading…
Reference in New Issue