From 74e43b97136cb002667cce02d2cd3afe3da65820 Mon Sep 17 00:00:00 2001 From: joren Date: Tue, 24 Mar 2026 10:12:22 +0100 Subject: [PATCH] fix: store TypeRole in col 0 for search album results When the H badge column was added, TypeRole was accidentally stored in col 1 but the double-click handler reads it from col 0, breaking album navigation from search. Move TypeRole back to col 0. Co-Authored-By: Claude Sonnet 4.6 --- src/view/sidepanel/view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/sidepanel/view.cpp b/src/view/sidepanel/view.cpp index b68961d..8792212 100644 --- a/src/view/sidepanel/view.cpp +++ b/src/view/sidepanel/view.cpp @@ -109,8 +109,8 @@ void SearchTab::onSearchResult(const QJsonObject &result) item->setFont(0, hiResFont); item->setTextAlignment(0, Qt::AlignCenter); } + item->setData(0, TypeRole, QStringLiteral("album")); // handler reads col 0 item->setData(1, IdRole, a["id"].toString()); - item->setData(1, TypeRole, QStringLiteral("album")); } }