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

if the last announce resulted in no peers being retrieved, don't display info on the number of peers retrieved

This commit is contained in:
Mitchell Livingston 2010-02-11 03:15:06 +00:00
parent 5c9cd2c2db
commit 1440e61555

View file

@ -118,7 +118,7 @@
else
{
baseString = [NSLocalizedString(@"Last Announce", "Tracker last announce") stringByAppendingFormat: @": %@", dateString];
if (fStat.hasAnnounced && fStat.lastAnnounceSucceeded)
if (fStat.hasAnnounced && fStat.lastAnnounceSucceeded && fStat.lastAnnouncePeerCount > 0)
{
NSString * peerString;
if (fStat.lastAnnouncePeerCount == 1)