From 5172463301d64c13c3903d93f7bfaaa777538fc9 Mon Sep 17 00:00:00 2001 From: dynaflash Date: Tue, 26 May 2009 17:13:02 +0000 Subject: [PATCH] MacGui: Store the PresetBuildNumber value as an int instead of a string in the presets plist. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2452 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/Controller.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 339945b83..49e023c5d 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -7099,7 +7099,7 @@ return YES; if ([[tempObject objectForKey:@"Type"] intValue] == 0) // Type 0 is a built in preset { /* Preset build number */ - [[UserPresets objectAtIndex:i] setObject:[NSString stringWithFormat: @"%d", [[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"] intValue]] forKey:@"PresetBuildNumber"]; + [[UserPresets objectAtIndex:i] setObject:[NSNumber numberWithInt:[[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"] intValue]] forKey:@"PresetBuildNumber"]; } i++; } -- 2.40.0