summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index e775e9795a..645aab9c1c 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -272,6 +272,14 @@ static int showdir(char *path, int start)
272 dptr->attr |= TREE_ATTR_MOD; 272 dptr->attr |= TREE_ATTR_MOD;
273 } 273 }
274 274
275 /* filter out all non-playlist files */
276 if ( global_settings.dirfilter == SHOW_PLAYLIST &&
277 (!(dptr->attr &
278 (ATTR_DIRECTORY|TREE_ATTR_M3U))) ) {
279 i--;
280 continue;
281 }
282
275 /* filter out non-music files */ 283 /* filter out non-music files */
276 if ( global_settings.dirfilter == SHOW_MUSIC && 284 if ( global_settings.dirfilter == SHOW_MUSIC &&
277 (!(dptr->attr & 285 (!(dptr->attr &