summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authordynaflash <[email protected]>2007-08-01 15:55:33 +0000
committerdynaflash <[email protected]>2007-08-01 15:55:33 +0000
commit6bf190d7481c23c148c5fa737a6174f62a4fcf3c (patch)
tree946ed53b64d7024278df46e2fbeb2fcc3b828393 /macosx
parent89b34e5983fd9932b6bc8091c43a6fc37c8cbf34 (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.mm2
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]];