Ignore:
Timestamp:
Oct 17, 2007, 12:46:20 AM (15 years ago)
Author:
livings124
Message:

fix regression where N/A is shown when leechers, seeders, or completed is 0; promote AR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r3414 r3438  
    11781178   
    11791179    int seeders = [torrent seeders], leechers = [torrent leechers], completed = [torrent completedFromTracker];
    1180     [fSeedersField setStringValue: seeders > 0 ? [NSString stringWithFormat: @"%d", seeders] : @""];
    1181     [fLeechersField setStringValue: leechers > 0 ? [NSString stringWithFormat: @"%d", leechers] : @""];
    1182     [fCompletedFromTrackerField setStringValue: completed > 0 ? [NSString stringWithFormat: @"%d", completed] : @""];
     1180    [fSeedersField setStringValue: seeders >= 0 ? [NSString stringWithFormat: @"%d", seeders] : @""];
     1181    [fLeechersField setStringValue: leechers >= 0 ? [NSString stringWithFormat: @"%d", leechers] : @""];
     1182    [fCompletedFromTrackerField setStringValue: completed >= 0 ? [NSString stringWithFormat: @"%d", completed] : @""];
    11831183   
    11841184    BOOL active = [torrent isActive];
Note: See TracChangeset for help on using the changeset viewer.