From 2d986b4354a0497a829b4bd5bb95c54ffde7970d Mon Sep 17 00:00:00 2001 From: ritsuka Date: Sun, 17 May 2015 06:30:22 +0000 Subject: 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 --- macosx/HBPreset.m | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'macosx/HBPreset.m') 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; } -- cgit v1.2.3