diff options
author | dynaflash <[email protected]> | 2007-08-01 15:55:33 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2007-08-01 15:55:33 +0000 |
commit | 6bf190d7481c23c148c5fa737a6174f62a4fcf3c (patch) | |
tree | 946ed53b64d7024278df46e2fbeb2fcc3b828393 /macosx | |
parent | 89b34e5983fd9932b6bc8091c43a6fc37c8cbf34 (diff) |
MacGui: Fix broken progress bar when selecting a non existing row in the Presets NSTableView
- bug was introduced on a recent checkin.
- Thanks gbooker for the patch and bringing it to our attention!
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@777 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/Controller.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 619a88416..2af28a8fa 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -4640,7 +4640,7 @@ the user is using "Custom" settings by determining the sender*/ or not clicking on a preset will do anything */ if ([fPresetsAdd isEnabled]) { - if ([tableView selectedRow]) + if ([tableView selectedRow] >= 0) { /* we get the chosen preset from the UserPresets array */ chosenPreset = [UserPresets objectAtIndex:[tableView selectedRow]]; |