mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 14:02:28 +00:00
remove undo action after tree reset (eg. after import)
This commit is contained in:
@@ -534,6 +534,8 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou
|
||||
|
||||
- (void)setTree:(KPKTree *)tree {
|
||||
if(self.tree != tree) {
|
||||
/* reseting the tree make undo a bit useless */
|
||||
[self.undoManager removeAllActions];
|
||||
_tree = tree;
|
||||
if(nil == self.treeDelegate) {
|
||||
self.treeDelegate = [[MPTreeDelegate alloc] initWithDocument:self];
|
||||
|
||||
Reference in New Issue
Block a user