mirror of
https://github.com/transmission/transmission.git
synced 2025-12-26 21:29:18 +00:00
Show tracker errors again
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user