diff options
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); |