summaryrefslogtreecommitdiffstats
path: root/macosx/HBPreset.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBPreset.m')
-rw-r--r--macosx/HBPreset.m7
1 files changed, 1 insertions, 6 deletions
diff --git a/macosx/HBPreset.m b/macosx/HBPreset.m
index 314704205..4fcb82495 100644
--- a/macosx/HBPreset.m
+++ b/macosx/HBPreset.m
@@ -192,16 +192,11 @@
- (id)copyWithZone:(NSZone *)zone
{
- HBPreset *node = [[self class] allocWithZone:zone];
+ HBPreset *node = [super copyWithZone:zone];
node->_name = [self.name copy];
node->_content = [self.content copy];
node->_presetDescription = [self.presetDescription copy];
- for (HBPreset *children in self.children)
- {
- [node.children addObject:[children copy]];
- }
-
return node;
}