summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorDan Everton <dan@iocaine.org>2006-08-15 22:14:35 +0000
committerDan Everton <dan@iocaine.org>2006-08-15 22:14:35 +0000
commit98c9f959e53536a0b63d0376fad198ef883c5c03 (patch)
tree85ea5698f63739690ffc02614c52d73b31b14468 /apps/tree.c
parent1526fd7ecb7b3f58c22e4e51bef848f503d8be60 (diff)
downloadrockbox-98c9f959e53536a0b63d0376fad198ef883c5c03.zip
rockbox-98c9f959e53536a0b63d0376fad198ef883c5c03.tar.gz
rockbox-98c9f959e53536a0b63d0376fad198ef883c5c03.tar.bz2
rockbox-98c9f959e53536a0b63d0376fad198ef883c5c03.tar.xz
Clear file view title if the user turns it off.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10596 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 8de23bd..1bbb5f8 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -354,6 +354,9 @@ static int update_dir(void)
} else if (global_settings.show_path_in_browser == SHOW_PATH_CURRENT) {
gui_synclist_set_title(&tree_lists,
tc.dirlevel > 0 ? strrchr(tc.currdir, '/') + 1 : "/");
+ } else {
+ /* Must clear the title as the list is reused */
+ gui_synclist_set_title(&tree_lists, NULL);
}
}
gui_synclist_set_nb_items(&tree_lists, tc.filesindir);