clearing undo-stack (#265)

This commit is contained in:
michael starke
2014-11-26 18:55:40 +01:00
parent f57ac5a98d
commit 49c73afcfb

View File

@@ -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 */