minor fix

This commit is contained in:
Marc Zinnschlag 2013-09-15 15:03:17 +02:00
parent fa25a068a8
commit 231419028d

View file

@ -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();