]> granicus.if.org Git - handbrake/commitdiff
MacGui: x264 options are now retained even after you customize a preset.
authordynaflash <dynaflashtech@gmail.com>
Mon, 16 Jul 2007 19:10:33 +0000 (19:10 +0000)
committerdynaflash <dynaflashtech@gmail.com>
Mon, 16 Jul 2007 19:10:33 +0000 (19:10 +0000)
- was fixed once, behavior crept back in so now its out again.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@702 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.mm

index 2edfb70d6b588cd1aaa78fa7671139a0b7ad2b20..0302d0455aade0420317cb13f79f56d6710447d2 100644 (file)
@@ -2021,24 +2021,10 @@ the user is using "Custom" settings by determining the sender*/
                [fPresetSelectedDisplay setStringValue: @"Custom"];
                
                curUserPresetChosenNum = nil;
-               /* If we have MP4, AVC H.264 and x264 Main then we look to see
-                       if there are any x264 options from the preferences to use */
-               if ([fDstFormatPopUp indexOfSelectedItem] == 0 && [fDstCodecsPopUp indexOfSelectedItem] == 1)
-               {
-                   /* Lets check to see there is a specified string in the prefs, and use that if need be */
-                       if ([[NSUserDefaults standardUserDefaults] stringForKey:@"DefAdvancedx264Flags"] != @"")
-                       {
-                               [fDisplayX264Options setStringValue: [NSString stringWithFormat:[[NSUserDefaults standardUserDefaults] stringForKey:@"DefAdvancedx264Flags"]]];
-                       }
-               }
-               else
-               {
-                       /* Empty the field to display custom x264 preset options*/
-                       [fDisplayX264Options setStringValue: @""];
-               }
+
                
        }
-       [self X264AdvancedOptionsSet:NULL];
+
 }
 
 - (IBAction) X264AdvancedOptionsSet: (id) sender