Index: apps/tree.c
===================================================================
RCS file: /cvsroot/rockbox/apps/tree.c,v
retrieving revision 1.432
diff -u -r1.432 tree.c
--- apps/tree.c	15 Aug 2006 23:02:12 -0000	1.432
+++ apps/tree.c	16 Aug 2006 05:37:22 -0000
@@ -353,7 +353,7 @@
             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 : "/");
+                strcmp(tc.currdir, "/")==0 ? "/" : strrchr(tc.currdir, '/')+1);
         } else {
             /* Must clear the title as the list is reused */
             gui_synclist_set_title(&tree_lists, NULL);
