Changeset 7080


Ignore:
Timestamp:
Nov 9, 2008, 12:12:29 PM (12 years ago)
Author:
livings124
Message:

don't append "http" to addresses in the proxy address field

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/PrefsController.m

    r7007 r7080  
    716716{
    717717    NSString * address = [sender stringValue];
    718     BOOL blank = [address isEqualToString: @""];
    719    
    720     if (!blank && [address rangeOfString: @"://"].location == NSNotFound)
    721         address = [@"http://" stringByAppendingString: address];
    722    
    723     if (blank || tr_httpIsValidURL([address UTF8String]))
    724     {
    725         tr_sessionSetProxy(fHandle, [address UTF8String]);
    726         [sender setStringValue: address];
    727         [fDefaults setObject: address forKey: @"ProxyAddress"];
    728     }
    729     else
    730     {
    731         NSBeep();
    732         [sender setStringValue: [fDefaults stringForKey: @"ProxyAddress"]];
    733     }
     718   
     719    tr_sessionSetProxy(fHandle, [address UTF8String]);
     720    [sender setStringValue: address];
     721    [fDefaults setObject: address forKey: @"ProxyAddress"];
    734722}
    735723
  • trunk/macosx/TorrentTableView.m

    r7077 r7080  
    748748        visibleRect.origin.y += height;
    749749   
    750     for (NSInteger i = start ? 1 : 0; i<numberOfRects; i += 2)
     750    for (NSInteger i = start ? 1 : 0; i < numberOfRects; i += 2)
    751751    {
    752752        NSRectFill(visibleRect);
    753         visibleRect.origin.y += 2 * height;
     753        visibleRect.origin.y += 2.0 * height;
    754754    }
    755755   
  • trunk/macosx/TrackerTableView.m

    r7077 r7080  
    9494        visibleRect.origin.y += height;
    9595   
    96     for (NSInteger i = start ? 1 : 0; i<numberOfRects; i += 2)
     96    for (NSInteger i = start ? 1 : 0; i < numberOfRects; i += 2)
    9797    {
    9898        NSRectFill(visibleRect);
    99         visibleRect.origin.y += 2 * height;
     99        visibleRect.origin.y += 2.0 * height;
    100100    }
    101101   
Note: See TracChangeset for help on using the changeset viewer.