aboutsummaryrefslogtreecommitdiffstats
path: root/src/update.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/update.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/update.c b/src/update.c
index 12eec40c4..e47db8f09 100644
--- a/src/update.c
+++ b/src/update.c
@@ -30,7 +30,7 @@
#include "update.h"
#include "idle.h"
#include "stats.h"
-#include "main.h"
+#include "Main.hxx"
#include "mpd_error.h"
#include <glib.h>
@@ -118,7 +118,7 @@ update_enqueue(const char *path, bool _discard)
{
assert(g_thread_self() == main_task);
- if (!mapper_has_music_directory())
+ if (!db_is_simple() || !mapper_has_music_directory())
return 0;
if (progress != UPDATE_PROGRESS_IDLE) {