Song::kAlbumRemoveDisc is already QRegularExpression
This commit is contained in:
parent
35c7b57308
commit
1ebfa0ad7e
|
@ -1621,7 +1621,7 @@ QString CollectionModel::PrettyYearAlbum(const int year, const QString &album) {
|
|||
|
||||
QString CollectionModel::PrettyAlbumDisc(const QString &album, const int disc) {
|
||||
|
||||
if (disc <= 0 || album.contains(QRegularExpression(Song::kAlbumRemoveDisc))) return TextOrUnknown(album);
|
||||
if (disc <= 0 || album.contains(Song::kAlbumRemoveDisc)) return TextOrUnknown(album);
|
||||
else return TextOrUnknown(album) + " - (Disc " + QString::number(disc) + ")";
|
||||
|
||||
}
|
||||
|
@ -1633,7 +1633,7 @@ QString CollectionModel::PrettyYearAlbumDisc(const int year, const QString &albu
|
|||
if (year <= 0) str = TextOrUnknown(album);
|
||||
else str = QString::number(year) + " - " + TextOrUnknown(album);
|
||||
|
||||
if (!album.contains(QRegularExpression(Song::kAlbumRemoveDisc)) && disc > 0) str += " - (Disc " + QString::number(disc) + ")";
|
||||
if (!album.contains(Song::kAlbumRemoveDisc) && disc > 0) str += " - (Disc " + QString::number(disc) + ")";
|
||||
|
||||
return str;
|
||||
|
||||
|
|
Loading…
Reference in New Issue