Changeset 10107


Ignore:
Timestamp:
Feb 6, 2010, 3:52:32 AM (12 years ago)
Author:
livings124
Message:

(hopefully) fix r10106 peer table resize issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r10106 r10107  
    12611261            [fPeers release];
    12621262            fPeers = nil;
    1263             [fPeerTable reloadData];   
    1264            
    1265             [fWebSeeds release];
    1266             fWebSeeds = nil;
    1267             [fWebSeedTable reloadData];
    1268             [self setWebSeedTableHidden: YES animate: YES];
     1263            [fPeerTable reloadData];
    12691264        }
    12701265       
     
    13941389   
    13951390    [fFileFilterField setStringValue: @""];
     1391   
     1392    [fWebSeeds release];
     1393    fWebSeeds = nil;
     1394   
     1395    BOOL hasWebSeeds = NO;
     1396    for (Torrent * torrent in fTorrents)
     1397        if ([torrent webSeedCount] > 0)
     1398        {
     1399            hasWebSeeds = YES;
     1400            break;
     1401        }
     1402   
     1403    if (!hasWebSeeds)
     1404        [fWebSeedTable reloadData];
     1405    [self setWebSeedTableHidden: !hasWebSeeds animate: YES];
    13961406   
    13971407    //update stats and settings
     
    16371647    [fWebSeeds sortUsingDescriptors: [fWebSeedTable sortDescriptors]];
    16381648    [fWebSeedTable reloadData];
    1639     [self setWebSeedTableHidden: [fWebSeeds count] == 0 animate: YES];
    16401649}
    16411650
Note: See TracChangeset for help on using the changeset viewer.