1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-31 11:35:24 +01:00

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

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_));