diff options
author | dynaflash <[email protected]> | 2007-05-08 18:07:15 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2007-05-08 18:07:15 +0000 |
commit | 8ca4cee8c1898ac74f0781d1fd0f506ba9db967e (patch) | |
tree | 4c248dda3342e7e3b66aebcc0bd7a379df9b5d4c /macosx/Controller.mm | |
parent | 1e9a05078d0c874d978c1a4660fd75b2d91ebc5e (diff) |
MacGui: Advanced Options tab
- fix bug where setting an option when the string field is empty caused a malformed value.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@572 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.mm')
-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]; |