summaryrefslogtreecommitdiffstats
path: root/macosx/HBPreset.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-05-17 06:30:22 +0000
committerritsuka <[email protected]>2015-05-17 06:30:22 +0000
commit2d986b4354a0497a829b4bd5bb95c54ffde7970d (patch)
tree5860c2081a3656709f51838f2ae74fb7c6e30efe /macosx/HBPreset.m
parent11f037ee4d90018928186ae8fb0b1b4f9429d49a (diff)
MacGui: make a copy of a preset before showing the export window.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7202 b64f7644-9d1e-0410-96f1-a4d463321fa5
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;
}