Use QString::number

This commit is contained in:
Jonas Kvinge 2020-01-20 18:15:37 +01:00
parent d4373aae93
commit 925540055a
1 changed files with 1 additions and 1 deletions

View File

@ -500,7 +500,7 @@ int SubsonicRequest::ParseSong(Song &song, const QJsonObject &json_obj, const qi
QString album_id;
if (json_obj.contains("albumId")) {
album_id = json_obj["albumId"].toString();
if (album_id.isEmpty()) album_id = json_obj["albumId"].toInt();
if (album_id.isEmpty()) album_id = QString::number(json_obj["albumId"].toInt());
}
qint64 artist_id = -1;