From afc4e064cba8f4387aa3c8834e483e157ff55d14 Mon Sep 17 00:00:00 2001 From: Bret Curtis Date: Tue, 25 Apr 2023 10:34:29 +0200 Subject: [PATCH] make use of pathToUnicodeString --- apps/opencs/editor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/opencs/editor.cpp b/apps/opencs/editor.cpp index 65ee003724..f4ddd9f254 100644 --- a/apps/opencs/editor.cpp +++ b/apps/opencs/editor.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -45,7 +46,7 @@ CS::Editor::Editor(int argc, char** argv) , mSettingsState(mCfgMgr) , mDocumentManager(mCfgMgr) , mPid(std::filesystem::temp_directory_path() / "openmw-cs.pid") - , mLockFile(QFileInfo(QString::fromStdString(mPid.string())).absoluteFilePath() + ".lock") + , mLockFile(QFileInfo(QString::fromStdString(Files::pathToUnicodeString(mPid))).absoluteFilePath() + ".lock") , mMerge(mDocumentManager) , mIpcServerName("org.openmw.OpenCS") , mServer(nullptr)