mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	mobile/undo: set undo stack as clean after save
If we're using the undo stack for determining the whether there are unsaved changes, we have to mark the undo stack as clean after save. This duplicates code from desktop. It is planned to unify this in the near future. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									a6567a0070
								
							
						
					
					
						commit
						1de56d468f
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -1341,6 +1341,7 @@ void QMLManager::saveChangesLocal()
 | 
				
			||||||
			return;
 | 
								return;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		mark_divelist_changed(false);
 | 
							mark_divelist_changed(false);
 | 
				
			||||||
 | 
							Command::setClean();
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		appendTextToLog("local save requested with no unsaved changes");
 | 
							appendTextToLog("local save requested with no unsaved changes");
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue