summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/tree.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index f8459eea4a..b7ad02a4aa 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -563,6 +563,13 @@ void set_current_file(char *path)
563 char *name; 563 char *name;
564 unsigned int i; 564 unsigned int i;
565 565
566 /* in ID3DB mode it is a bad idea to call this function */
567 /* (only happens with `follow playlist') */
568 if( *tc.dirfilter == SHOW_ID3DB )
569 {
570 return;
571 }
572
566 /* separate directory from filename */ 573 /* separate directory from filename */
567 name = strrchr(path+1,'/'); 574 name = strrchr(path+1,'/');
568 if (name) 575 if (name)