From e581bc01f7b3c0c195c0f53277e4e123b50bca33 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 3 Dec 2008 00:29:45 +0000 Subject: [PATCH] #1550 Not being able to deselect all transfers by clicking in the empty field --- macosx/TorrentTableView.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macosx/TorrentTableView.m b/macosx/TorrentTableView.m index a096b7074..f958036b2 100644 --- a/macosx/TorrentTableView.m +++ b/macosx/TorrentTableView.m @@ -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