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 <noreply@anthropic.com>
This commit is contained in:
joren
2026-03-24 10:12:22 +01:00
parent 7e2a04ecff
commit 74e43b9713

View File

@@ -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"));
}
}