tagtree: Fix FS#13651 database track titles not voiced with extensions turned off

regression introduced in commit 26c612f

Change-Id: Id2328a9f0de1fefdfddc7572524cb22a0668af96
This commit is contained in:
Christian Soffke 2025-08-05 15:45:08 +02:00
parent 7b0f408c71
commit 2ddcc95423

View file

@ -124,7 +124,7 @@ static struct entry *get_valid_entry(const char* funcname,
static bool ext_stripit(bool isdir, int attr, int dirfilter) static bool ext_stripit(bool isdir, int attr, int dirfilter)
{ {
if(!isdir) if((dirfilter != SHOW_ID3DB) && !isdir)
{ {
switch(global_settings.show_filename_ext) switch(global_settings.show_filename_ext)
{ {
@ -141,7 +141,7 @@ static bool ext_stripit(bool isdir, int attr, int dirfilter)
case 3: case 3:
default: default:
/* show file extension: only when viewing all */ /* show file extension: only when viewing all */
return (dirfilter != SHOW_ID3DB && dirfilter != SHOW_ALL); return (dirfilter != SHOW_ALL);
} }
} }
return false; return false;