summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2024-03-24 11:19:41 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2024-03-24 11:19:41 -0400
commit34361c82f15a2f11f1737dc5ee30f650e93079c3 (patch)
treed1af7c393e3a0c77f8b91da798c7a1a7adb0158b
parentc00dff157cd7dcbcf665e2c5ccf2fd645eba2510 (diff)
downloadrockbox-34361c82f1.tar.gz
rockbox-34361c82f1.zip
[BugFix] Database Track>Filename returned Directory Attribute
Navigating to track listing by Filename in the database passed the whole directory to the playlist and track info plugin insead of the track filename this was due to 'tag_virt_basename' not being recognized as a valid audio file Change-Id: I3d1cd0b6998a2e55d4f7d70711af9ced46cf2c44
-rw-r--r--apps/tagtree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c
index a85f848c13..736493bfd9 100644
--- a/apps/tagtree.c
+++ b/apps/tagtree.c
@@ -2420,7 +2420,8 @@ int tagtree_get_attr(struct tree_context* c)
switch (c->currtable)
{
case NAVIBROWSE:
- if (csi->tagorder[c->currextra] == tag_title)
+ if (csi->tagorder[c->currextra] == tag_title
+ || csi->tagorder[c->currextra] == tag_virt_basename)
attr = FILE_ATTR_AUDIO;
else
attr = ATTR_DIRECTORY;