summaryrefslogtreecommitdiffstats
path: root/apps/onplay.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/onplay.c')
-rw-r--r--apps/onplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index a9cbc64598..26a2614b56 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -626,7 +626,7 @@ static int add_to_playlist(void* arg)
}
#ifdef HAVE_TAGCACHE
- if (context == CONTEXT_ID3DB)
+ if ((context == CONTEXT_ID3DB) && (selected_file_attr & ATTR_DIRECTORY))
{
tagtree_current_playlist_insert(position, queue);
}