summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-08-14 18:19:56 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-08-14 18:19:56 +0000
commit7e84db7fa20904a17c67d757185ff0d54a52eb05 (patch)
tree3c7e6a074a00e2f6c3165e91a3b499083ce981b1
parent0c5ec36c7afd327a718a5847d631c28fd7c264b0 (diff)
downloadrockbox-7e84db7fa20904a17c67d757185ff0d54a52eb05.tar.gz
rockbox-7e84db7fa20904a17c67d757185ff0d54a52eb05.zip
Fixed: FS#5801 Playlist building in tagcache doesn't work properly after
changing the language. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10572 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/tree.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c
index ac0e44c7f1..484ed672cd 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -1186,16 +1186,20 @@ bool create_playlist(void)
bool rockbox_browse(const char *root, int dirfilter)
{
static struct tree_context backup;
-
+ int last_context;
+
backup = tc;
reload_dir = true;
memcpy(tc.currdir, root, sizeof(tc.currdir));
start_wps = false;
tc.dirfilter = &dirfilter;
-
+ last_context = curr_context;
+
dirbrowse();
tc = backup;
+ curr_context = last_context;
+
return false;
}