1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-28 17:21:06 +01:00

Use QFile::encodeName() in Song::InitFromFilePartial

Fixes #693
This commit is contained in:
Jonas Kvinge 2021-04-21 20:11:37 +02:00
parent e97acf7938
commit 9b60559855

View File

@ -1041,7 +1041,7 @@ void Song::InitFromFilePartial(const QString &filename) {
QFileInfo info(filename);
d->basefilename_ = info.fileName();
TagLib::FileRef fileref(filename.toUtf8().constData());
TagLib::FileRef fileref(QFile::encodeName(filename).constData());
if (fileref.file()) {
d->valid_ = true;
d->source_ = Source_LocalFile;