summaryrefslogtreecommitdiffstats
path: root/apps/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 72e62caf2b..2f1d140ad9 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -347,10 +347,13 @@ static int update_dir(void)
gui_syncsplash(HZ, true, str(LANG_SHOWDIR_BUFFER_FULL));
}
}
- if (global_settings.show_path_in_browser == SHOW_PATH_FULL) {
- gui_synclist_set_title(&tree_lists, tc.currdir);
- } else if (global_settings.show_path_in_browser == SHOW_PATH_CURRENT) {
- gui_synclist_set_title(&tree_lists, strrchr(tc.currdir, '/'));
+ if (!id3db) {
+ if (global_settings.show_path_in_browser == SHOW_PATH_FULL) {
+ gui_synclist_set_title(&tree_lists, tc.currdir);
+ } else if (global_settings.show_path_in_browser == SHOW_PATH_CURRENT) {
+ gui_synclist_set_title(&tree_lists,
+ tc.dirlevel > 0 ? strrchr(tc.currdir, '/') + 1 : "/");
+ }
}
gui_synclist_set_nb_items(&tree_lists, tc.filesindir);
gui_synclist_set_icon_callback(&tree_lists,