library: use boolean, not bitwise, operator on bools

Signed-off-by: Marcus Müller <marcus_clementine@baseband.digital>
This commit is contained in:
Marcus Müller 2023-09-17 09:25:06 +02:00 committed by John Maguire
parent 8e47ab59e5
commit 98e24f626b
1 changed files with 1 additions and 1 deletions

View File

@ -896,7 +896,7 @@ LibraryBackend::AlbumList LibraryBackend::GetAlbums(const QString& artist,
QString last_artist;
QString last_album_artist;
while (query.Next()) {
bool compilation = query.Value(3).toBool() | query.Value(4).toBool();
bool compilation = query.Value(3).toBool() || query.Value(4).toBool();
Album info;
info.artist = compilation ? QString() : query.Value(1).toString();