mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-17 11:43:25 +00:00
minor fix
This commit is contained in:
parent
fa25a068a8
commit
231419028d
@ -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…
x
Reference in New Issue
Block a user