Ignore:
Timestamp:
Jun 7, 2008, 11:38:05 PM (14 years ago)
Author:
livings124
Message:

update the peer inspector tab to show web seeders

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r6048 r6076  
    205205    [fTorrents release];
    206206    [fPeers release];
     207    [fWebSeeds release];
    207208    [fTrackers release];
    208209   
     
    357358        fPeers = nil;
    358359       
     360        [fWebSeeds release];
     361        fWebSeeds = nil;
     362       
    359363        [fTrackers release];
    360364        fTrackers = nil;
     
    441445        [fPiecesView setTorrent: torrent];
    442446       
     447        //get webseers for table
     448        [fWebSeeds release];
     449        fWebSeeds = [[torrent webSeeders] retain];
     450       
    443451        //get trackers for table
    444452        [fTrackers release];
     
    457465    [fTrackerTable reloadData];
    458466   
     467    [fWebSeedTable reloadData];
     468    #warning check if should just be reloaded when not 1 torrent
    459469    [fPeerTable reloadData];
    460470}
     
    772782    if (tableView == fPeerTable)
    773783        return fPeers ? [fPeers count] : 0;
     784    else if (tableView == fWebSeedTable)
     785        return fWebSeeds ? [fWebSeeds count] : 0;
    774786    else if (tableView == fTrackerTable)
    775787        return fTrackers ? [fTrackers count] : 0;
     
    802814        else
    803815            return [peer objectForKey: @"IP"];
     816    }
     817    else if (tableView == fWebSeedTable)
     818    {
     819        return [fWebSeeds objectAtIndex: row];
    804820    }
    805821    else if (tableView == fTrackerTable)
Note: See TracChangeset for help on using the changeset viewer.