aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/update.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/update.c b/src/update.c
index 1edb8cc01..4316dd727 100644
--- a/src/update.c
+++ b/src/update.c
@@ -36,6 +36,10 @@
#include "main.h"
#include "config.h"
+#ifdef ENABLE_SQLITE
+#include "song_sticker.h"
+#endif
+
#include <glib.h>
#include <assert.h>
@@ -717,6 +721,11 @@ static void song_delete_event(void)
g_debug("removing: %s", uri);
g_free(uri);
+#ifdef ENABLE_SQLITE
+ /* if the song has a sticker, delete it */
+ sticker_song_delete(delete);
+#endif
+
deleteASongFromPlaylist(delete);
delete = NULL;