diff options
-rw-r--r-- | macosx/Controller.mm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm index d17bcfbbc..f090f6106 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -2206,8 +2206,16 @@ the user is using "Custom" settings by determining the sender*/ } else // if none exists, add it to the string { + if ([[fDisplayX264Options stringValue] isEqualToString: @""]) + { + [fDisplayX264Options setStringValue:[NSString stringWithFormat:@"%@=%@", + [NSString stringWithFormat:optNameToChange],[NSString stringWithFormat:@"%d",[sender indexOfSelectedItem]-1]]]; + } + else + { [fDisplayX264Options setStringValue:[NSString stringWithFormat:@"%@:%@=%@",[NSString stringWithFormat:[fDisplayX264Options stringValue]], [NSString stringWithFormat:optNameToChange],[NSString stringWithFormat:@"%d",[sender indexOfSelectedItem]-1]]]; + } } /* We now need to reset the opt widgets since we changed some stuff */ [self X264AdvancedOptionsSet:NULL]; |