mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-15 18:30:39 +01:00
parent
e97acf7938
commit
9b60559855
@ -1041,7 +1041,7 @@ void Song::InitFromFilePartial(const QString &filename) {
|
|||||||
QFileInfo info(filename);
|
QFileInfo info(filename);
|
||||||
d->basefilename_ = info.fileName();
|
d->basefilename_ = info.fileName();
|
||||||
|
|
||||||
TagLib::FileRef fileref(filename.toUtf8().constData());
|
TagLib::FileRef fileref(QFile::encodeName(filename).constData());
|
||||||
if (fileref.file()) {
|
if (fileref.file()) {
|
||||||
d->valid_ = true;
|
d->valid_ = true;
|
||||||
d->source_ = Source_LocalFile;
|
d->source_ = Source_LocalFile;
|
||||||
|
Loading…
Reference in New Issue
Block a user