forked from mirror/openmw-tes3mp
minor fix
This commit is contained in:
parent
fa25a068a8
commit
231419028d
1 changed files with 3 additions and 1 deletions
|
@ -69,7 +69,9 @@ void CSMDoc::FinalSavingStage::perform (int stage, std::vector<std::string>& mes
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
boost::filesystem::remove (mState.getPath());
|
if (boost::filesystem::exists (mState.getPath()))
|
||||||
|
boost::filesystem::remove (mState.getPath());
|
||||||
|
|
||||||
boost::filesystem::rename (mState.getTmpPath(), mState.getPath());
|
boost::filesystem::rename (mState.getTmpPath(), mState.getPath());
|
||||||
|
|
||||||
mDocument.getUndoStack().setClean();
|
mDocument.getUndoStack().setClean();
|
||||||
|
|
Loading…
Reference in a new issue