Fix search result subtitles.

sectionPath() was starting with parentId instead of the section itself,
causing subtitles to skip the section name the entry belongs to.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
John Preston
2026-01-15 17:28:49 +04:00
parent ec683d7488
commit d2933428a4
@@ -121,8 +121,7 @@ QString SearchRegistry::sectionTitle(Type sectionId) const {
QString SearchRegistry::sectionPath(Type sectionId) const {
auto parts = QStringList();
const auto start = _sections.find(sectionId);
auto current = (start != _sections.end()) ? start->second->parentId : nullptr;
auto current = sectionId;
while (current) {
if (const auto title = sectionTitle(current); !title.isEmpty()) {
parts.prepend(title);