diff options
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 11 |
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) | |||
347 | gui_syncsplash(HZ, true, str(LANG_SHOWDIR_BUFFER_FULL)); | 347 | gui_syncsplash(HZ, true, str(LANG_SHOWDIR_BUFFER_FULL)); |
348 | } | 348 | } |
349 | } | 349 | } |
350 | if (global_settings.show_path_in_browser == SHOW_PATH_FULL) { | 350 | if (!id3db) { |
351 | gui_synclist_set_title(&tree_lists, tc.currdir); | 351 | if (global_settings.show_path_in_browser == SHOW_PATH_FULL) { |
352 | } else if (global_settings.show_path_in_browser == SHOW_PATH_CURRENT) { | 352 | gui_synclist_set_title(&tree_lists, tc.currdir); |
353 | gui_synclist_set_title(&tree_lists, strrchr(tc.currdir, '/')); | 353 | } else if (global_settings.show_path_in_browser == SHOW_PATH_CURRENT) { |
354 | gui_synclist_set_title(&tree_lists, | ||
355 | tc.dirlevel > 0 ? strrchr(tc.currdir, '/') + 1 : "/"); | ||
356 | } | ||
354 | } | 357 | } |
355 | gui_synclist_set_nb_items(&tree_lists, tc.filesindir); | 358 | gui_synclist_set_nb_items(&tree_lists, tc.filesindir); |
356 | gui_synclist_set_icon_callback(&tree_lists, | 359 | gui_synclist_set_icon_callback(&tree_lists, |