aboutsummaryrefslogtreecommitdiffstats
path: root/src/UpdateRemove.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/UpdateRemove.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/UpdateRemove.cxx b/src/UpdateRemove.cxx
index f4043b2f3..374a767b8 100644
--- a/src/UpdateRemove.cxx
+++ b/src/UpdateRemove.cxx
@@ -20,7 +20,6 @@
#include "config.h" /* must be first for large file support */
#include "UpdateRemove.hxx"
#include "UpdateDomain.hxx"
-#include "Playlist.hxx"
#include "GlobalEvents.hxx"
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
@@ -58,10 +57,13 @@ song_remove_event(void)
#ifdef ENABLE_SQLITE
/* if the song has a sticker, remove it */
if (sticker_enabled())
- sticker_song_delete(removed_song);
+ sticker_song_delete(*removed_song);
#endif
- instance->DeleteSong(*removed_song);
+ {
+ const auto uri = removed_song->GetURI();
+ instance->DeleteSong(uri.c_str());
+ }
/* clear "removed_song" and send signal to update thread */
remove_mutex.lock();