Changeset 219


Ignore:
Timestamp:
Apr 8, 2006, 3:56:26 PM (15 years ago)
Author:
titer
Message:

Show tracker errors again

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.c

    r218 r219  
    395395
    396396    s->status = tor->status;
     397    s->error  = tor->error;
    397398    memcpy( s->trackerError, tor->trackerError,
    398399            sizeof( s->trackerError ) );
  • trunk/macosx/Torrent.m

    r166 r219  
    145145    }
    146146
    147 #if 0
    148     if( ( stat->status & ( TR_STATUS_DOWNLOAD | TR_STATUS_SEED ) ) &&
    149         ( stat->status & TR_TRACKER_ERROR ) )
    150     {
    151         fPeersString = [NSString stringWithFormat: @"%@%@",
    152             @"Error: ", [NSString stringWithUTF8String: stat->error]];
    153     }
    154 #endif
     147    if( fStat->error & TR_ETRACKER )
     148    {
     149        [fInfoString setString: @"Error: "];
     150        [fInfoString appendString: [NSString
     151            stringWithUTF8String: fStat->trackerError]];
     152    }
    155153
    156154    [fUploadString   setString: @""];
  • trunk/macosx/TorrentCell.m

    r162 r219  
    315315    pen.y += 13;
    316316    string = [[fTorrent infoString] stringFittingInWidth:
    317         ( cellFrame.size.width - 77 ) withAttributes: attributes];
     317        ( fWidth - 80 ) withAttributes: attributes];
    318318    [string drawAtPoint: pen withAttributes: attributes];
    319319
Note: See TracChangeset for help on using the changeset viewer.