mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 15:12:21 +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 {
|
- (void)setTree:(KPKTree *)tree {
|
||||||
if(self.tree != tree) {
|
if(self.tree != tree) {
|
||||||
|
/* reseting the tree make undo a bit useless */
|
||||||
|
[self.undoManager removeAllActions];
|
||||||
_tree = tree;
|
_tree = tree;
|
||||||
if(nil == self.treeDelegate) {
|
if(nil == self.treeDelegate) {
|
||||||
self.treeDelegate = [[MPTreeDelegate alloc] initWithDocument:self];
|
self.treeDelegate = [[MPTreeDelegate alloc] initWithDocument:self];
|
||||||
|
|||||||
Reference in New Issue
Block a user