summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2007-03-07 21:36:43 +0000
committerSteve Bavin <pondlife@pondlife.me>2007-03-07 21:36:43 +0000
commitf61b7948f986e688c75d8c8753918d5be0e27d51 (patch)
treee76ffec06a850e2e1ae4b6539910dc8532d9f47f
parent8137489e2b967e40c15005c8a4c09903a8a24fc4 (diff)
downloadrockbox-f61b7948f986e688c75d8c8753918d5be0e27d51.tar.gz
rockbox-f61b7948f986e688c75d8c8753918d5be0e27d51.zip
Don't try to initialise while the database status is unknown
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12679 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/root_menu.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c
index 0dbf179d9e..9a9266f028 100644
--- a/apps/root_menu.c
+++ b/apps/root_menu.c
@@ -104,8 +104,15 @@ static int browser(void* param)
case GO_TO_DBBROWSER:
if (!tagcache_is_usable())
{
+ /* Check if we're still initialising, so status is unknown */
+ struct tagcache_stat *stat = tagcache_get_stat();
+ if (!stat->initialized)
+ {
+ gui_syncsplash(HZ*2, true, str(LANG_TAGCACHE_BUSY));
+ return GO_TO_PREVIOUS;
+ }
+
/* Re-init if required */
- struct tagcache_stat *stat = tagcache_get_stat();
if (!stat->ready && !stat->commit_delayed && stat->processed_entries == 0)
{
/* Prompt the user */