Changeset 419


Ignore:
Timestamp:
Jun 20, 2006, 7:20:36 PM (16 years ago)
Author:
livings124
Message:

Now that sorting by stat sorts by progress, it should be resorted more often.

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r416 r419  
    9494    [fPrefsController setPrefs: fLib];
    9595   
    96     [fAdvancedBarItem setState: [fDefaults
    97         boolForKey: @"UseAdvancedBar"] ? NSOnState : NSOffState];
     96    [fAdvancedBarItem setState: [fDefaults boolForKey: @"UseAdvancedBar"]];
    9897
    9998    fToolbar = [[NSToolbar alloc] initWithIdentifier: @"Transmission Toolbar"];
     
    477476   
    478477    [self updateUI: nil];
    479     if ([fSortType isEqualToString: @"State"])
    480         [self sortTorrents];
    481478    [self updateTorrentHistory];
    482479}
     
    504501   
    505502    [self updateUI: nil];
    506     if ([fSortType isEqualToString: @"State"])
    507         [self sortTorrents];
    508503    [self updateTorrentHistory];
    509504}
     
    738733            if( ![fWindow isKeyWindow] )
    739734                fCompleted++;
    740            
    741             if ([fSortType isEqualToString: @"State"])
    742                 [self sortTorrents];
    743735        }
    744736    }
    745737
    746     if ([fSortType isEqualToString: @"Progress"])
     738    if ([fSortType isEqualToString: @"Progress"] || [fSortType isEqualToString: @"State"])
    747739        [self sortTorrents];
    748740    else
     
    933925- (void) ratioSingleChange: (NSNotification *) notification
    934926{
    935     if ([fSortType isEqualToString: @"State"])
    936         [self sortTorrents];
    937    
    938927    //update info for changed ratio setting
    939928    NSArray * torrents = [self torrentsAtIndexes: [fTableView selectedRowIndexes]];
  • trunk/macosx/Torrent.m

    r418 r419  
    147147        fStat = tr_torrentStat( fHandle );
    148148       
    149         [[NSNotificationCenter defaultCenter] postNotificationName:
    150             @"TorrentRatioChanged" object: self];
     149        [[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentRatioChanged" object: self];
    151150    }
    152151
  • trunk/macosx/TorrentTableView.m

    r381 r419  
    114114                && [self pointInRevealRect: fClickPoint] )
    115115        [[fTorrents objectAtIndex: row] reveal];
    116         else
    117         if ([e clickCount] == 2)
    118         {
    119             if ([self pointInIconRect: point])
    120                 [[fTorrents objectAtIndex: row] reveal];
    121             else
    122                 [fController showInfo: nil];
    123         }
     116        else if ([e clickCount] == 2)
     117    {
     118        if ([self pointInIconRect: point])
     119            [[fTorrents objectAtIndex: row] reveal];
     120        else
     121            [fController showInfo: nil];
     122    }
     123    else;
    124124   
    125125        [super mouseUp: e];
Note: See TracChangeset for help on using the changeset viewer.