aboutsummaryrefslogtreecommitdiffstats
path: root/src/queue
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/queue/QueueSave.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/queue/QueueSave.cxx b/src/queue/QueueSave.cxx
index 11c61aa9a..051054da2 100644
--- a/src/queue/QueueSave.cxx
+++ b/src/queue/QueueSave.cxx
@@ -110,8 +110,10 @@ queue_load_song(TextFile &file, const char *line, Queue &queue)
if (uri_has_scheme(uri)) {
song = new DetachedSong(uri);
} else {
+#ifdef ENABLE_DATABASE
song = DatabaseDetachSong(uri, IgnoreError());
if (song == nullptr)
+#endif
return;
}
}