mirror of
https://github.com/clementine-player/Clementine
synced 2025-02-02 20:36:44 +01:00
Merge pull request #6501 from jonaski/compilations
Fix songs stuck in various artists
This commit is contained in:
commit
a240818b6c
@ -823,8 +823,7 @@ void LibraryBackend::UpdateCompilations(const QSqlDatabase& db,
|
||||
QSqlQuery find_song(db);
|
||||
find_song.prepare(QString("SELECT ROWID, " + Song::kColumnSpec +
|
||||
" FROM %1"
|
||||
" WHERE filename = :filename AND sampler = "
|
||||
":sampler AND unavailable = 0")
|
||||
" WHERE filename = :filename AND unavailable = 0")
|
||||
.arg(songs_table_));
|
||||
|
||||
QSqlQuery update_song(db);
|
||||
@ -838,7 +837,6 @@ void LibraryBackend::UpdateCompilations(const QSqlDatabase& db,
|
||||
|
||||
// Get song, so we can tell the model its updated
|
||||
find_song.bindValue(":filename", url.toEncoded());
|
||||
find_song.bindValue(":sampler", int(!sampler));
|
||||
find_song.exec();
|
||||
while (find_song.next()) {
|
||||
Song song;
|
||||
|
Loading…
x
Reference in New Issue
Block a user