mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 17:32:17 +00:00
clear undo stack on lock
This commit is contained in:
@@ -281,6 +281,7 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGroupKey
|
||||
[self saveDocument:sender];
|
||||
self.encryptedData = [self.tree encryptWithPassword:self.compositeKey forVersion:KPKXmlVersion error:&error];
|
||||
self.tree = nil;
|
||||
[self.undoManager removeAllActions];
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:MPDocumentDidLockDatabaseNotification object:self];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user