Changeset 215


Ignore:
Timestamp:
Apr 7, 2006, 5:10:27 PM (16 years ago)
Author:
titer
Message:

Corrected keys for rate limits
Always set limit, even if value entered is wrong

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/PrefsController.m

    r213 r215  
    257257    int limit = [sender intValue];
    258258    NSString * key = ( sender == fUploadField ) ?
    259                         @"CheckUpload" : @"CheckDownload";
     259                        @"UploadLimit" : @"DownloadLimit";
    260260
    261261    //if value entered is not an int or is less than 0 do not change
     
    270270    {
    271271        [fDefaults setInteger: limit forKey: key];
    272         if( sender == fUploadField )
    273             tr_setUploadLimit( fHandle,
    274                 ( [fUploadCheck state] == NSOffState ) ? -1 : limit );
    275         else
    276             tr_setDownloadLimit( fHandle,
    277                 ( [fDownloadCheck state] == NSOffState ) ? -1 : limit );
    278     }
     272    }
     273
     274    if( sender == fUploadField )
     275        tr_setUploadLimit( fHandle,
     276            ( [fUploadCheck state] == NSOffState ) ? -1 : limit );
     277    else
     278        tr_setDownloadLimit( fHandle,
     279            ( [fDownloadCheck state] == NSOffState ) ? -1 : limit );
    279280}
    280281
Note: See TracChangeset for help on using the changeset viewer.