Fix a bug loading where song metadata wouldn't be loaded from the library when loading a local file containing spaces. Fixes issue 2192

This commit is contained in:
David Sansome 2011-08-27 22:51:30 +01:00
parent 2f63130606
commit 5884502389

View File

@ -260,7 +260,7 @@ SongLoader::Result SongLoader::LoadLocal(const QString& filename, bool block,
LibraryQuery query;
query.SetColumnSpec("%songs_table.ROWID, " + Song::kColumnSpec);
query.AddWhere("filename", url.toString());
query.AddWhere("filename", url.toEncoded());
SongList song_list;