#1550 Not being able to deselect all transfers by clicking in the empty field

This commit is contained in:
Mitchell Livingston 2008-12-03 00:29:45 +00:00
parent 932815e400
commit e581bc01f7
1 changed files with 2 additions and 2 deletions

View File

@ -389,7 +389,7 @@
BOOL pushed;
if ([NSApp isOnLeopardOrBetter])
pushed = fMouseActionRow == row || fMouseRevealRow == row || fMouseControlRow == row;
pushed = row != -1 && (fMouseActionRow == row || fMouseRevealRow == row || fMouseControlRow == row);
else
pushed = [self pointInControlRect: point] || [self pointInRevealRect: point] || [self pointInActionRect: point];
@ -403,7 +403,7 @@
fSelectedValues = nil;
//avoid weird behavior when showing menu by doing this after mouse down
if ([NSApp isOnLeopardOrBetter] ? fMouseActionRow == row : [self pointInActionRect: point])
if ([NSApp isOnLeopardOrBetter] ? row != -1 && fMouseActionRow == row : [self pointInActionRect: point])
{
fActionPushedRow = row;
[self setNeedsDisplayInRect: [self rectOfRow: row]]; //ensure button is pushed down