Changeset 4377


Ignore:
Timestamp:
Dec 29, 2007, 3:54:05 PM (14 years ago)
Author:
livings124
Message:

remove pieces bar info from filtered torrents

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r4375 r4377  
    18131813- (void) applyFilter: (id) sender
    18141814{
     1815    NSMutableArray * previousTorrents = [fDisplayedTorrents mutableCopy];
     1816   
    18151817    //remember selected rows if needed
    18161818    NSArray * selectedTorrents = [fTableView numberOfSelectedRows] > 0
     
    19111913    [fDisplayedTorrents setArray: [fTorrents objectsAtIndexes: indexes]];
    19121914   
     1915    //clear display cache for not-shown torrents
     1916    [previousTorrents removeObjectsInArray: fDisplayedTorrents];
     1917    if ([previousTorrents count] > 0)
     1918    {
     1919        NSEnumerator * enumerator = [previousTorrents objectEnumerator];
     1920        Torrent * torrent;
     1921        while ((torrent = [enumerator nextObject]))
     1922            [torrent setPreviousAmountFinished: NULL];
     1923    }
     1924    [previousTorrents release];
     1925   
    19131926    //set button tooltips
    19141927    [fNoFilterButton setCount: [fTorrents count]];
     
    19231936    if (selectedTorrents)
    19241937    {
     1938        NSEnumerator * enumerator = [selectedTorrents objectEnumerator];
    19251939        Torrent * torrent;
    1926         NSEnumerator * enumerator = [selectedTorrents objectEnumerator];
    19271940        NSMutableIndexSet * selectedIndexes = [NSMutableIndexSet indexSet];
    19281941        unsigned index;
  • trunk/macosx/es.lproj/Localizable.strings

    r4376 r4377  
    787787"Yellow" = "Amarillo";
    788788
     789"%d of %@" = "%1$d de %2$@";
     790
Note: See TracChangeset for help on using the changeset viewer.