mirror of
https://github.com/transmission/transmission
synced 2024-12-24 08:43:27 +00:00
Show tracker errors again
This commit is contained in:
parent
62bcf17b22
commit
58ec8a3b19
3 changed files with 6 additions and 7 deletions
|
@ -394,6 +394,7 @@ tr_stat_t * tr_torrentStat( tr_torrent_t * tor )
|
|||
tr_lockLock( &tor->lock );
|
||||
|
||||
s->status = tor->status;
|
||||
s->error = tor->error;
|
||||
memcpy( s->trackerError, tor->trackerError,
|
||||
sizeof( s->trackerError ) );
|
||||
|
||||
|
|
|
@ -144,14 +144,12 @@
|
|||
break;
|
||||
}
|
||||
|
||||
#if 0
|
||||
if( ( stat->status & ( TR_STATUS_DOWNLOAD | TR_STATUS_SEED ) ) &&
|
||||
( stat->status & TR_TRACKER_ERROR ) )
|
||||
if( fStat->error & TR_ETRACKER )
|
||||
{
|
||||
fPeersString = [NSString stringWithFormat: @"%@%@",
|
||||
@"Error: ", [NSString stringWithUTF8String: stat->error]];
|
||||
[fInfoString setString: @"Error: "];
|
||||
[fInfoString appendString: [NSString
|
||||
stringWithUTF8String: fStat->trackerError]];
|
||||
}
|
||||
#endif
|
||||
|
||||
[fUploadString setString: @""];
|
||||
if( fStat->progress == 1.0 )
|
||||
|
|
|
@ -314,7 +314,7 @@ static uint32_t kGreen[] =
|
|||
[[fTorrent statusString] drawAtPoint: pen withAttributes: attributes];
|
||||
pen.y += 13;
|
||||
string = [[fTorrent infoString] stringFittingInWidth:
|
||||
( cellFrame.size.width - 77 ) withAttributes: attributes];
|
||||
( fWidth - 80 ) withAttributes: attributes];
|
||||
[string drawAtPoint: pen withAttributes: attributes];
|
||||
|
||||
/* Rates */
|
||||
|
|
Loading…
Reference in a new issue