Changeset 9675


Ignore:
Timestamp:
Dec 5, 2009, 4:10:59 PM (12 years ago)
Author:
livings124
Message:

Only reset the inspector when a magnetized transfer's metadata is retrieved if the transfer is selected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r9610 r9675  
    7878
    7979- (void) resetInfo;
     80- (void) resetInfoForTorrent: (NSNotification *) notification;
    8081
    8182- (void) updateInfoGeneral;
     
    208209    //allow for update notifications
    209210    NSNotificationCenter * nc = [NSNotificationCenter defaultCenter];
    210     [nc addObserver: self selector: @selector(resetInfo) name: @"ResetInspector" object: nil];
     211    [nc addObserver: self selector: @selector(resetInfoForTorrent:) name: @"ResetInspector" object: nil];
    211212    [nc addObserver: self selector: @selector(updateInfoStats) name: @"UpdateStats" object: nil];
    212213    [nc addObserver: self selector: @selector(updateOptions) name: @"UpdateOptions" object: nil];
     
    14041405}
    14051406
     1407- (void) resetInfoForTorrent: (NSNotification *) notification
     1408{
     1409    if (fTorrents && [fTorrents containsObject: [notification object]])
     1410        [self resetInfo];
     1411}
     1412
    14061413- (void) updateInfoGeneral
    14071414{   
Note: See TracChangeset for help on using the changeset viewer.