fix: artistview nullptr connect warning + album version in header
- Move updateToggleText() after m_list creation to avoid null connects - Show version (e.g. "Deluxe") in album header title Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -119,7 +119,9 @@ public:
|
||||
|
||||
void setAlbum(const QJsonObject &album)
|
||||
{
|
||||
m_title->setText(album["title"].toString());
|
||||
const QString base = album["title"].toString();
|
||||
const QString ver = album["version"].toString().trimmed();
|
||||
m_title->setText(ver.isEmpty() ? base : base + QStringLiteral(" (") + ver + QLatin1Char(')'));
|
||||
m_artistId = static_cast<qint64>(album["artist"].toObject()["id"].toDouble());
|
||||
m_subtitle->setText(album["artist"].toObject()["name"].toString());
|
||||
m_subtitle->setEnabled(m_artistId > 0);
|
||||
|
||||
Reference in New Issue
Block a user