mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 20:26:43 +00:00 
			
		
		
		
	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