diff options
author | Rodeo <[email protected]> | 2011-08-15 22:13:21 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2011-08-15 22:13:21 +0000 |
commit | 949c23a54d0bd40572e9e99989af6841c6d79121 (patch) | |
tree | b314c86bcf157872fcb135fc964b670e86bedda4 /macosx/HBAdvancedController.m | |
parent | fc26f24de969967ea0758b059f84d7fefcca3cc9 (diff) |
MacGUI: Advanced panel: remove unnecessary checks when hiding the psy sliders.
Fixes an issue where hiding the psy-rd slider would fail to reset the slider's positition to its default value.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4179 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBAdvancedController.m')
-rw-r--r-- | macosx/HBAdvancedController.m | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/macosx/HBAdvancedController.m b/macosx/HBAdvancedController.m index a1cf3d183..b8bb553c2 100644 --- a/macosx/HBAdvancedController.m +++ b/macosx/HBAdvancedController.m @@ -599,22 +599,16 @@ { [[fX264optPsyRDSlider animator] setHidden:YES]; [[fX264optPsyRDLabel animator] setHidden:YES]; - if ( [fX264optPsyRDSlider floatValue] < 1.0 ) - { - [fX264optPsyRDSlider setFloatValue:1.0]; - [[fX264optPsyRDSlider cell] performClick:self]; - } + [fX264optPsyRDSlider setFloatValue:1.0]; + [[fX264optPsyRDSlider cell] performClick:self]; } if( [fX264optPsyTrellisSlider isHidden] == false) { [[fX264optPsyTrellisSlider animator] setHidden:YES]; [[fX264optPsyTrellisLabel animator] setHidden:YES]; - if ( [fX264optPsyTrellisSlider floatValue] > 0.0 ) - { - [fX264optPsyTrellisSlider setFloatValue:0.0]; - [[fX264optPsyTrellisSlider cell] performClick:self]; - } + [fX264optPsyTrellisSlider setFloatValue:0.0]; + [[fX264optPsyTrellisSlider cell] performClick:self]; } } else |