mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
Fix for unicode filenames in ContentModel (Fixes #2451)
This commit is contained in:
parent
545ca9c9b4
commit
f7ecda68c9
1 changed files with 1 additions and 1 deletions
|
@ -449,7 +449,7 @@ void ContentSelectorModel::ContentModel::addFiles(const QString &path)
|
|||
ToUTF8::Utf8Encoder encoder =
|
||||
ToUTF8::calculateEncoding(mEncoding.toStdString());
|
||||
fileReader.setEncoder(&encoder);
|
||||
fileReader.open(dir.absoluteFilePath(path).toStdString());
|
||||
fileReader.open(std::string(dir.absoluteFilePath(path).toUtf8().constData()));
|
||||
|
||||
EsmFile *file = new EsmFile(path);
|
||||
|
||||
|
|
Loading…
Reference in a new issue