Ignore:
Timestamp:
Jun 26, 2010, 5:48:57 PM (12 years ago)
Author:
Longinus00
Message:

(2.0x qt) #3286:Use flagStr in the status field of the peer list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0x/qt/details.cc

    r10867 r10873  
    824824            }
    825825
    826             QString code;
    827             if( peer.isDownloadingFrom )                           { code += 'D'; }
    828             else if( peer.clientIsInterested )                     { code += 'd'; }
    829             if( peer.isUploadingTo )                               { code += 'U'; }
    830             else if( peer.peerIsInterested )                       { code += 'u'; }
    831             if( !peer.clientIsChoked && !peer.clientIsInterested ) { code += 'K'; }
    832             if( !peer.peerIsChoked && !peer.peerIsInterested )     { code += '?'; }
    833             if( peer.isEncrypted )                                 { code += 'E'; }
    834             if( peer.isIncoming )                                  { code += 'I'; }
     826            const QString code = peer.flagStr;
    835827            item->setStatus( code );
    836828            item->refresh( peer );
     
    848840                    case '?': txt = tr( "We unchoked this peer, but they're not interested" ); break;
    849841                    case 'E': txt = tr( "Encrypted connection" ); break;
     842                    case 'H': txt = tr( "Peer was discovered through DHT" ); break;
    850843                    case 'X': txt = tr( "Peer was discovered through Peer Exchange (PEX)" ); break;
    851844                    case 'I': txt = tr( "Peer is an incoming connection" ); break;
Note: See TracChangeset for help on using the changeset viewer.