Changeset 6048


Ignore:
Timestamp:
Jun 5, 2008, 3:22:18 PM (14 years ago)
Author:
livings124
Message:

handle all settings changed by rpc (previously download location was missing)

Location:
trunk/macosx
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r6047 r6048  
    15541554    [fTrackers removeObjectsAtIndexes: indexes];
    15551555   
    1556     if (![torrent updateAllTrackersForRemove: fTrackers])
    1557         NSBeep();
    1558     else
    1559         [fTrackerTable deselectAll: self];
     1556    [torrent updateAllTrackersForRemove: fTrackers];
     1557    [fTrackerTable deselectAll: self];
    15601558   
    15611559    //reset table with either new or old value
  • trunk/macosx/PrefsController.m

    r6047 r6048  
    811811   
    812812    //download directory
    813     #warning missing!
     813    NSString * downloadLocation = [[NSString stringWithUTF8String: tr_sessionGetDownloadDir(fHandle)] stringByStandardizingPath];
     814    [fDefaults setObject: downloadLocation forKey: @"DownloadFolder"];
    814815   
    815816    //peers
     
    850851    {
    851852        //encryption handled by bindings
     853       
     854        //download directory handled by bindings
    852855       
    853856        [fPeersGlobalField setIntValue: peersTotal];
  • trunk/macosx/Torrent.h

    r6019 r6048  
    152152- (NSMutableArray *) allTrackers: (BOOL) separators;
    153153- (BOOL) updateAllTrackersForAdd: (NSMutableArray *) trackers;
    154 - (BOOL) updateAllTrackersForRemove: (NSMutableArray *) trackers;
     154- (void) updateAllTrackersForRemove: (NSMutableArray *) trackers;
    155155- (BOOL) hasAddedTrackers;
    156156
  • trunk/macosx/Torrent.m

    r6047 r6048  
    820820}
    821821
    822 - (BOOL) updateAllTrackersForRemove: (NSMutableArray *) trackers
     822- (void) updateAllTrackersForRemove: (NSMutableArray *) trackers
    823823{
    824824    //check if no user-added groups
     
    827827   
    828828    [self updateAllTrackers: trackers];
    829    
    830     return YES;
    831829}
    832830
Note: See TracChangeset for help on using the changeset viewer.