1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-04-01 22:36:39 +00:00

Fix for incorrect QString -> path conversion

This commit is contained in:
scrawl 2015-06-11 22:36:19 +02:00
parent 8d22d26669
commit 6051c47eef

View file

@ -307,12 +307,12 @@ bool CS::Editor::makeIPCServer()
mServer->close(); mServer->close();
fullPath.remove(QRegExp("dummy$")); fullPath.remove(QRegExp("dummy$"));
fullPath += mIpcServerName; fullPath += mIpcServerName;
if(boost::filesystem::exists(fullPath.toStdString().c_str())) if(boost::filesystem::exists(fullPath.toUtf8().constData()))
{ {
// TODO: compare pid of the current process with that in the file // TODO: compare pid of the current process with that in the file
std::cout << "Detected unclean shutdown." << std::endl; std::cout << "Detected unclean shutdown." << std::endl;
// delete the stale file // delete the stale file
if(remove(fullPath.toStdString().c_str())) if(remove(fullPath.toUtf8().constData()))
std::cerr << "ERROR removing stale connection file" << std::endl; std::cerr << "ERROR removing stale connection file" << std::endl;
} }
} }