From 7df1a17db4c2e54ecb0cd3234667289cc0076f08 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 8 Jan 2009 06:36:40 +0100 Subject: update: save the database even if it is empty Save an empty database, even if the music directory is empty. --- src/update.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/update.c') diff --git a/src/update.c b/src/update.c index 10108f0a9..58f1b08d1 100644 --- a/src/update.c +++ b/src/update.c @@ -518,8 +518,9 @@ static void * update_task(void *_path) updateDirectory(directory, &st); } - if (modified) + if (modified || !db_exists()) db_save(); + progress = UPDATE_PROGRESS_DONE; wakeup_main_task(); return NULL; -- cgit v1.2.3