Changeset 12769


Ignore:
Timestamp:
Aug 27, 2011, 9:32:45 PM (10 years ago)
Author:
livings124
Message:

Add some warnings and excessive Lion checks

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentCell.m

    r12626 r12769  
    470470        NSString * actionImageString;
    471471        if (fMouseDownActionButton)
     472            #warning we can get rid of the on 10.7
    472473            actionImageString = @"ActionOn.png";
    473474        else if (!fTracking && fHoverAction)
  • trunk/macosx/TorrentTableView.m

    r12620 r12769  
    7373        fMouseRevealRow = -1;
    7474        fMouseActionRow = -1;
     75        #warning we can get rid of the on 10.7
    7576        fActionPushedRow = -1;
    7677       
     
    412413    if (row != -1 && fMouseActionRow == row)
    413414    {
    414         fActionPushedRow = row;
    415         [self setNeedsDisplayInRect: [self rectOfRow: row]]; //ensure button is pushed down
     415        if (![NSApp isOnLionOrBetter])
     416        {
     417            fActionPushedRow = row;
     418            [self setNeedsDisplayInRect: [self rectOfRow: row]]; //ensure button is pushed down
     419        }
    416420       
    417421        #warning maybe make appear on mouse down
    418422        [self displayTorrentActionPopoverForEvent: event];
    419423       
    420         fActionPushedRow = -1;
    421         [self setNeedsDisplayInRect: [self rectOfRow: row]];
     424        if (![NSApp isOnLionOrBetter])
     425        {
     426            fActionPushedRow = -1;
     427            [self setNeedsDisplayInRect: [self rectOfRow: row]];
     428        }
    422429    }
    423430    else if (!pushed && [event clickCount] == 2) //double click
Note: See TracChangeset for help on using the changeset viewer.