diff options
author | Dan Everton <dan@iocaine.org> | 2006-08-15 22:14:35 +0000 |
---|---|---|
committer | Dan Everton <dan@iocaine.org> | 2006-08-15 22:14:35 +0000 |
commit | 98c9f959e53536a0b63d0376fad198ef883c5c03 (patch) | |
tree | 85ea5698f63739690ffc02614c52d73b31b14468 /apps/tree.c | |
parent | 1526fd7ecb7b3f58c22e4e51bef848f503d8be60 (diff) | |
download | rockbox-98c9f959e53536a0b63d0376fad198ef883c5c03.tar.gz rockbox-98c9f959e53536a0b63d0376fad198ef883c5c03.zip |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c index 8de23bd1f5..1bbb5f8ca3 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -354,6 +354,9 @@ static int update_dir(void) | |||
354 | } else if (global_settings.show_path_in_browser == SHOW_PATH_CURRENT) { | 354 | } else if (global_settings.show_path_in_browser == SHOW_PATH_CURRENT) { |
355 | gui_synclist_set_title(&tree_lists, | 355 | gui_synclist_set_title(&tree_lists, |
356 | tc.dirlevel > 0 ? strrchr(tc.currdir, '/') + 1 : "/"); | 356 | tc.dirlevel > 0 ? strrchr(tc.currdir, '/') + 1 : "/"); |
357 | } else { | ||
358 | /* Must clear the title as the list is reused */ | ||
359 | gui_synclist_set_title(&tree_lists, NULL); | ||
357 | } | 360 | } |
358 | } | 361 | } |
359 | gui_synclist_set_nb_items(&tree_lists, tc.filesindir); | 362 | gui_synclist_set_nb_items(&tree_lists, tc.filesindir); |