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:
@@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user