1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 08:13:27 +00:00

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

This commit is contained in:
Mitchell Livingston 2007-10-17 00:46:20 +00:00
parent 00a425a7d3
commit 6c6bd8d1d5
3 changed files with 9 additions and 9 deletions

View file

@ -11,6 +11,7 @@ Lead Developers <transmission-dev@m0k.org>
Project Contributors
Nick Pucius (Mac OS X Help documentation)
Hugo van Heuven, madebysofa (Icon design, Mac toolbar icons)
Anthony Ryan (Redesigned icon, Mac inspector icons)
Translators
Mac OS X, current release:
@ -45,7 +46,6 @@ Image Contributors
FOOOD
Martin Stadtmueller (Icon tweaking)
Mike Matas <http://www.mikematas.com/> (Previous toolbar icons)
Anthony Ryan (Inspector icons)
Jonas Rask (Globe icon)
George Tsotsos
Rashid Eissing (Transfers preferences icon)

View file

@ -39,7 +39,10 @@ Lead Developers
\fs20 \cf2 (Mac OS X Help documentation)\
\fs24 \cf0 Hugo van Heuven, madebysofa
\fs20 \cf2 (Icon design, Mac toolbar icons)
\fs20 \cf2 (Icon design, Mac toolbar icons)\
\fs24 \cf0 Anthony Ryan
\fs20 \cf2 (Redesigned icon, Mac inspector icons)
\fs24 \cf0 \
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural\pardirnatural
\cf0 \
@ -87,10 +90,7 @@ Image Contributors\
\f0\b\fs24 \cf0 \
\f1\b0 Mike Matas <http://www.mikematas.com/>
\fs20 \cf2 (Previous toolbar icons)\
\fs24 \cf0 Anthony Ryan
\fs20 \cf2 (Inspector icons)
\fs20 \cf2 (Previous toolbar icons)
\fs24 \cf0 \
Jonas Rask
\fs20 \cf2 (Globe icon)

View file

@ -1177,9 +1177,9 @@ typedef enum
Torrent * torrent = [fTorrents objectAtIndex: 0];
int seeders = [torrent seeders], leechers = [torrent leechers], completed = [torrent completedFromTracker];
[fSeedersField setStringValue: seeders > 0 ? [NSString stringWithFormat: @"%d", seeders] : @""];
[fLeechersField setStringValue: leechers > 0 ? [NSString stringWithFormat: @"%d", leechers] : @""];
[fCompletedFromTrackerField setStringValue: completed > 0 ? [NSString stringWithFormat: @"%d", completed] : @""];
[fSeedersField setStringValue: seeders >= 0 ? [NSString stringWithFormat: @"%d", seeders] : @""];
[fLeechersField setStringValue: leechers >= 0 ? [NSString stringWithFormat: @"%d", leechers] : @""];
[fCompletedFromTrackerField setStringValue: completed >= 0 ? [NSString stringWithFormat: @"%d", completed] : @""];
BOOL active = [torrent isActive];