1
0
Fork 0
forked from len0rd/rockbox

[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
This commit is contained in:
William Wilgus 2024-03-24 11:19:41 -04:00
parent c00dff157c
commit 34361c82f1

View file

@ -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;