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