OSDN Git Service

MacGui: Store the PresetBuildNumber value as an int instead of a string in the preset...
authordynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 26 May 2009 17:13:02 +0000 (17:13 +0000)
committerdynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 26 May 2009 17:13:02 +0000 (17:13 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@2452 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.mm

index 339945b..49e023c 100644 (file)
@@ -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++;
     }