Skip to content

Commit

Permalink
library: use boolean, not bitwise, operator on bools
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Müller <[email protected]>
  • Loading branch information
Marcus Müller authored and hatstand committed Sep 17, 2023
1 parent 8e47ab5 commit 98e24f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library/librarybackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 98e24f6

Please sign in to comment.