From 48b52aec468309ef00fc4bfee3b3fff969969661 Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Wed, 8 Oct 2008 16:32:01 +0000 Subject: Fix FS#8949 - Alphabetical directory listing reversed after "Error Accessing Directory", patch by pondlife, some long line police by me, also kill a few error splashes in functions that could be called by threads other than UI git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18742 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/tree.c') diff --git a/apps/tree.c b/apps/tree.c index 3e469247c8..768223ec4d 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -900,6 +900,7 @@ int rockbox_browse(const char *root, int dirfilter) int ret_val = 0; int *last_filter = tc.dirfilter; tc.dirfilter = &dirfilter; + tc.sort_dir = global_settings.sort_dir; reload_dir = true; if (dirfilter >= NUM_FILTER_MODES) @@ -940,6 +941,7 @@ void tree_mem_init(void) /* initialize tree context struct */ memset(&tc, 0, sizeof(tc)); tc.dirfilter = &global_settings.dirfilter; + tc.sort_dir = global_settings.sort_dir; tc.name_buffer_size = AVERAGE_FILENAME_LENGTH * max_files; tc.name_buffer = buffer_alloc(tc.name_buffer_size); -- cgit v1.2.3