mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 11:42:30 +00:00
clearing undo-stack (#265)
This commit is contained in:
@@ -269,6 +269,10 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGroupKey
|
||||
#pragma mark Lock/Unlock/Decrypt
|
||||
|
||||
- (void)lockDatabase:(id)sender {
|
||||
if(self.undoManager.canUndo) {
|
||||
/* ask the user? */
|
||||
[self.undoManager removeAllActions];
|
||||
}
|
||||
[self exitSearch:self];
|
||||
NSError *error;
|
||||
/* Locking needs to be lossless hence just use the XML format */
|
||||
|
||||
Reference in New Issue
Block a user