Changeset 9521


Ignore:
Timestamp:
Nov 14, 2009, 3:26:29 AM (11 years ago)
Author:
livings124
Message:

on 10.6, only reload the progress row in the peer table when clicking it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/PeerTableView.m

    r7659 r9521  
    2424
    2525#import "PeerTableView.h"
     26#import "NSApplicationAdditions.h"
    2627
    2728@implementation PeerTableView
     
    3435        [[NSUserDefaults standardUserDefaults] setBool: ![[NSUserDefaults standardUserDefaults]
    3536            boolForKey: @"DisplayPeerProgressBarNumber"] forKey: @"DisplayPeerProgressBarNumber"];
    36         [self reloadData];
     37       
     38        if ([NSApp isOnSnowLeopardOrBetter])
     39        {
     40            NSIndexSet * rowIndexes = [NSIndexSet indexSetWithIndexesInRange: NSMakeRange(0, [self numberOfRows])],
     41                        * columnIndexes = [NSIndexSet indexSetWithIndex: [self columnAtPoint: point]];
     42            [self reloadDataForRowIndexes: rowIndexes columnIndexes: columnIndexes];
     43        }
     44        else
     45            [self reloadData];
    3746    }
    3847}
Note: See TracChangeset for help on using the changeset viewer.