forked from teamnwah/openmw-tes3coop
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
|
||||
{
|
||||
boost::filesystem::remove (mState.getPath());
|
||||
if (boost::filesystem::exists (mState.getPath()))
|
||||
boost::filesystem::remove (mState.getPath());
|
||||
|
||||
boost::filesystem::rename (mState.getTmpPath(), mState.getPath());
|
||||
|
||||
mDocument.getUndoStack().setClean();
|
||||
|
|
Loading…
Reference in a new issue