Changeset 7247


Ignore:
Timestamp:
Dec 3, 2008, 12:29:45 AM (12 years ago)
Author:
livings124
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentTableView.m

    r7150 r7247  
    390390    BOOL pushed;
    391391    if ([NSApp isOnLeopardOrBetter])
    392         pushed = fMouseActionRow == row || fMouseRevealRow == row || fMouseControlRow == row;
     392        pushed = row != -1 && (fMouseActionRow == row || fMouseRevealRow == row || fMouseControlRow == row);
    393393    else
    394394        pushed = [self pointInControlRect: point] || [self pointInRevealRect: point] || [self pointInActionRect: point];
     
    404404   
    405405    //avoid weird behavior when showing menu by doing this after mouse down
    406     if ([NSApp isOnLeopardOrBetter] ? fMouseActionRow == row : [self pointInActionRect: point])
     406    if ([NSApp isOnLeopardOrBetter] ? row != -1 && fMouseActionRow == row : [self pointInActionRect: point])
    407407    {
    408408        fActionPushedRow = row;
Note: See TracChangeset for help on using the changeset viewer.