Encode song URLs when inserting them into the database. This was broken by revision 98dd001a. Fixes issue #4127

This commit is contained in:
David Sansome 2014-01-20 21:39:18 +11:00
parent cfb8fc8fbc
commit dc5670edfb
1 changed files with 1 additions and 1 deletions

View File

@ -797,7 +797,7 @@ void Song::BindToQuery(QSqlQuery *query) const {
&& Utilities::UrlOnSameDriveAsClementine(d->url_)) {
query->bindValue(":filename", Utilities::GetRelativePathToClementineBin(d->url_));
} else {
query->bindValue(":filename", d->url_);
query->bindValue(":filename", d->url_.toEncoded());
}
query->bindValue(":mtime", notnullintval(d->mtime_));