diff --git a/apps/opencs/editor.cpp b/apps/opencs/editor.cpp index 7e9abcf4da..82a3c6e2f5 100644 --- a/apps/opencs/editor.cpp +++ b/apps/opencs/editor.cpp @@ -45,7 +45,7 @@ CS::Editor::Editor(int argc, char** argv) , mSettingsState(mCfgMgr) , mDocumentManager(mCfgMgr) , mPid(std::filesystem::temp_directory_path() / "openmw-cs.pid") - , mLockFile(QFileInfo(mPid.c_str()).absoluteFilePath() + ".lock") + , mLockFile(QFileInfo(Files::pathToQString(mPid)).absoluteFilePath() + ".lock") , mMerge(mDocumentManager) , mIpcServerName("org.openmw.OpenCS") , mServer(nullptr)