mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-15 07:32:30 +00:00
undo is working again
This commit is contained in:
@@ -418,16 +418,16 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGroupKey
|
|||||||
[[NSNotificationCenter defaultCenter] postNotificationName:MPDocumentCurrentItemChangedNotification object:self];
|
[[NSNotificationCenter defaultCenter] postNotificationName:MPDocumentCurrentItemChangedNotification object:self];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//- (void)setTree:(KPKTree *)tree {
|
- (void)setTree:(KPKTree *)tree {
|
||||||
// if(_tree != tree) {
|
if(_tree != tree) {
|
||||||
// _tree = tree;
|
_tree = tree;
|
||||||
// _tree.undoManager = [self undoManager];
|
_tree.undoManager = [self undoManager];
|
||||||
// if(nil == _treeDelgate) {
|
if(nil == _treeDelgate) {
|
||||||
// _treeDelgate = [[MPTreeDelegate alloc] initWithDocument:self];
|
_treeDelgate = [[MPTreeDelegate alloc] initWithDocument:self];
|
||||||
// }
|
}
|
||||||
// _tree.delegate = _treeDelgate;
|
_tree.delegate = _treeDelgate;
|
||||||
// }
|
}
|
||||||
//}
|
}
|
||||||
|
|
||||||
#pragma mark Data Accesors
|
#pragma mark Data Accesors
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user