libkcddb: fix build

This commit is contained in:
Ivailo Monev 2015-09-04 02:41:13 +00:00
parent e1c89a39e7
commit 8babe90166

View file

@ -112,10 +112,14 @@ namespace KCDDB
// Uses musicbrainz discid for the first release, // Uses musicbrainz discid for the first release,
// then discid-2, discid-3 and so on, to // then discid-2, discid-3 and so on, to
// allow multiple releases with the same discid // allow multiple releases with the same discid
if (relnr == 1) if (relnr == 1) {
info.set(QLatin1String( "discid" ), discId); info.set(QLatin1String( "discid" ), discId);
else } else {
info.set(QLatin1String( "discid" ), discId+QLatin1String( "-" )+QString::number(relnr)); QString adjusted = discId;
adjusted.append(QLatin1String( "-" ));
adjusted.append(QString::number(relnr));
info.set(QLatin1String( "discid" ), adjusted);
}
QString title = QString::fromUtf8(FullRelease->Title().c_str()); QString title = QString::fromUtf8(FullRelease->Title().c_str());