Changeset 13170


Ignore:
Timestamp:
Jan 18, 2012, 4:03:12 AM (10 years ago)
Author:
livings124
Message:

replace two unnecessary instances of reloadData with setNeedsDisplay:

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/GlobalOptionsPopoverViewController.m

    r13162 r13170  
    5050- (IBAction) updatedDisplayString: (id) sender
    5151{
    52     #warning setNeedsDisplay: instead of reloadData?
    53     [[NSNotificationCenter defaultCenter] postNotificationName: @"ReloadTorrentTable" object: nil];
     52    [[NSNotificationCenter defaultCenter] postNotificationName: @"RefreshTorrentTable" object: nil];
    5453}
    5554
  • trunk/macosx/TorrentTableView.m

    r13166 r13170  
    108108    [self setGroupStatusColumns];
    109109   
    110     [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(reloadData)
    111                                                  name: @"ReloadTorrentTable" object: nil];
     110    [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(setNeedsDisplay) name: @"RefreshTorrentTable" object: nil];
    112111}
    113112
     
    872871            fPiecesBarPercent = 1.0 - progress;
    873872       
    874         [self reloadData];
     873        [self setNeedsDisplay: YES];
    875874    }
    876875}
Note: See TracChangeset for help on using the changeset viewer.