Changeset 5453


Ignore:
Timestamp:
Mar 30, 2008, 4:42:06 AM (14 years ago)
Author:
livings124
Message:

(1.1x) Fix visual glitch with the tracker inspector tab when there is no scrape address

Location:
branches/1.1x
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1x/NEWS

    r5418 r5453  
    11NEWS file for Transmission <http://www.transmissionbt.com/>
     2
     31.11 (2008/xx/yy)
     4- Mac
     5   + Fix visual glitch with the tracker inspector tab when there is no scrape address
    26
    371.10 (2008/03/28)
  • branches/1.1x/macosx/InfoWindowController.m

    r5325 r5453  
    11351135   
    11361136    //scrape fields
    1137     NSString * scrapeAddress = [[torrent trackerAddress] stringByAppendingString: [torrent trackerAddressScrape]];
    1138     [fScrapeAddressField setStringValue: scrapeAddress];
    1139     [fScrapeAddressField setToolTip: scrapeAddress];
     1137    NSString * scrapeAddressTail;
     1138    if ((scrapeAddressTail = [torrent trackerAddressScrape]))
     1139    {
     1140        NSString * scrapeAddress = [[torrent trackerAddress] stringByAppendingString: scrapeAddressTail];
     1141        [fScrapeAddressField setStringValue: scrapeAddress];
     1142        [fScrapeAddressField setToolTip: scrapeAddress];
     1143    }
     1144    else
     1145    {
     1146        [fScrapeAddressField setStringValue: @""];
     1147        [fScrapeAddressField setToolTip: @""];
     1148    }
    11401149   
    11411150    [fScrapeLastField setObjectValue: [torrent lastScrapeTime]];
  • branches/1.1x/macosx/Torrent.m

    r5325 r5453  
    740740- (NSString *) trackerAddressScrape
    741741{
    742     return [NSString stringWithUTF8String: fStat->tracker->scrape];
     742    return fStat->tracker->scrape ? [NSString stringWithUTF8String: fStat->tracker->scrape] : nil;
    743743}
    744744
Note: See TracChangeset for help on using the changeset viewer.