From e263c692c246c0cfd83b198a88dbf665634ef743 Mon Sep 17 00:00:00 2001 From: ritsuka Date: Tue, 7 Jul 2015 11:32:23 +0000 Subject: MacGui: fix the multiple default presets issue. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7348 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/HBPresetsManager.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'macosx') diff --git a/macosx/HBPresetsManager.m b/macosx/HBPresetsManager.m index 121473638..b17294b27 100644 --- a/macosx/HBPresetsManager.m +++ b/macosx/HBPresetsManager.m @@ -214,7 +214,6 @@ NSString *HBPresetsChangedNotification = @"HBPresetsChangedNotification"; else if ([obj isLeaf] && firstUserPreset == nil) { firstUserPreset = obj; - *stop = YES; } if ([obj isDefault]) @@ -222,10 +221,13 @@ NSString *HBPresetsChangedNotification = @"HBPresetsChangedNotification"; self.defaultPreset = obj; defaultAlreadySetted = YES; } + + [obj setIsDefault:NO]; }]; if (defaultAlreadySetted) { + self.defaultPreset.isDefault = YES; return; } else if (normalPreset) -- cgit v1.2.3