summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 5dd88c8e9d..b9b257e093 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -652,7 +652,7 @@ static int dirbrowse(void)
652 return GO_TO_PREVIOUS; /* No files found for rockbox_browse() */ 652 return GO_TO_PREVIOUS; /* No files found for rockbox_browse() */
653 } 653 }
654 654
655 while(1) { 655 while(tc.browse) {
656 bool restore = false; 656 bool restore = false;
657 if (tc.dirlevel < 0) 657 if (tc.dirlevel < 0)
658 tc.dirlevel = 0; /* shouldnt be needed.. this code needs work! */ 658 tc.dirlevel = 0; /* shouldnt be needed.. this code needs work! */
@@ -1018,7 +1018,7 @@ int rockbox_browse(struct browse_context *browse)
1018 } 1018 }
1019 else 1019 else
1020 { 1020 {
1021 if (dirfilter != SHOW_ID3DB) 1021 if (dirfilter != SHOW_ID3DB && (browse->flags & BROWSE_DIRFILTER) == 0)
1022 tc.dirfilter = &global_settings.dirfilter; 1022 tc.dirfilter = &global_settings.dirfilter;
1023 tc.browse = browse; 1023 tc.browse = browse;
1024 strmemccpy(current, browse->root, MAX_PATH); 1024 strmemccpy(current, browse->root, MAX_PATH);