From 21d347b075380390aebfd56838b35e6770b51cb1 Mon Sep 17 00:00:00 2001 From: kugel Date: Sat, 4 Jul 2009 23:20:51 +0000 Subject: [PATCH] Do not delete tagcache entries on bootup with dircache enabled but auto-update disabled. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This fixes for example disappearing database if you happen to boot without µSD. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21644 a1c6a512-1295-4272-9138-f99709370657 --- apps/tagcache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/tagcache.c b/apps/tagcache.c index 43babfa9a..07af9bf83 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c @@ -3984,7 +3984,8 @@ static bool load_tagcache(void) { logf("Entry no longer valid."); logf("-> %s", buf); - delete_entry(fe->idx_id); + if (global_settings.tagcache_autoupdate) + delete_entry(fe->idx_id); continue ; } -- 2.11.4.GIT