From dd1fbd51fc7bb3fa7237b3bc34335e99bef29e35 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Fri, 11 Nov 2022 18:36:07 -0500 Subject: [PATCH] TagTree Show file name for tag_title [UNTAGGED] BugFix limit result to tags that only show Change-Id: I56ff4ea8c5a17df806d69d58599a9a88f8acc4b0 --- apps/tagtree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/tagtree.c b/apps/tagtree.c index 5d6c3cf8f1..633ad7ecbc 100644 --- a/apps/tagtree.c +++ b/apps/tagtree.c @@ -1578,8 +1578,8 @@ static int retrieve_entries(struct tree_context *c, int offset, bool init) if (strcmp(tcs.result, UNTAGGED) == 0) { - if (tag == tag_title) /* Fallback to filename */ - { + if (tag == tag_title && tcs.type == tag_title && tcs.filter_count <= 1) + { /* Fallback to filename */ char *lastname = dptr->name; dptr->name = core_get_data(c->cache.name_buffer_handle)+namebufused; if (tagcache_retrieve(&tcs, tcs.idx_id, tag_filename, dptr->name,