summaryrefslogtreecommitdiff
path: root/apps/root_menu.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-03-10 12:51:08 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-03-10 12:51:08 +0000
commitfd30be55454cfd88c1cbbecb30f1fb483e40f2da (patch)
tree37f2ba924ddd5b6a2b4daa2cd007c47053a074a7 /apps/root_menu.c
parenta990ff2920884ba6810dd222fd99ca627fd0e5d6 (diff)
Fix the database browser not remembering its selected item
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12705 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/root_menu.c')
-rw-r--r--apps/root_menu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c
index 49c31cb512..050f5be3c6 100644
--- a/apps/root_menu.c
+++ b/apps/root_menu.c
@@ -84,7 +84,7 @@ static int browser(void* param)
static char last_folder[MAX_PATH] = "/";
/* and stuff for the database browser */
#ifdef HAVE_TAGCACHE
- static int last_db_dirlevel = 0;
+ static int last_db_dirlevel = 0, last_db_selection = 0;
#endif
switch ((intptr_t)param)
@@ -166,6 +166,7 @@ static int browser(void* param)
return GO_TO_PREVIOUS;
filter = SHOW_ID3DB;
tc->dirlevel = last_db_dirlevel;
+ tc->selected_item = last_db_selection;
break;
#endif
case GO_TO_BROWSEPLUGINS:
@@ -182,6 +183,7 @@ static int browser(void* param)
#ifdef HAVE_TAGCACHE
case GO_TO_DBBROWSER:
last_db_dirlevel = tc->dirlevel;
+ last_db_selection = tc->selected_item;
break;
#endif
}