From 2dfa171b6acca2b4f1e05ce5d8e7112f487a1444 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 20 Oct 2020 17:12:28 +0200 Subject: [PATCH] Save effective_albumartist as empty istead of null Since we use the metadata now instead of the container keys for queries in the model, there is a regression when the values are null. --- src/core/song.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/song.cpp b/src/core/song.cpp index 130c75d99..cf513e19d 100644 --- a/src/core/song.cpp +++ b/src/core/song.cpp @@ -1372,7 +1372,7 @@ void Song::BindToQuery(QSqlQuery *query) const { query->bindValue(":art_automatic", d->art_automatic_.toString(QUrl::FullyEncoded)); query->bindValue(":art_manual", d->art_manual_.toString(QUrl::FullyEncoded)); - query->bindValue(":effective_albumartist", this->effective_albumartist()); + query->bindValue(":effective_albumartist", strval(this->effective_albumartist())); query->bindValue(":effective_originalyear", intval(this->effective_originalyear())); query->bindValue(":cue_path", d->cue_path_);