mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user