Changeset 11211


Ignore:
Timestamp:
Sep 16, 2010, 2:00:54 AM (12 years ago)
Author:
Longinus00
Message:

(trunk) don't display "Got a list of 0 peers" for currently paused torrents

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/remote.c

    r11209 r11211  
    13281328            printf( "  Tracker %d: %s\n", (int)(id), host );
    13291329            if( isBackup )
    1330                 printf( "  Backup on tier #%d\n", (int)tier );
     1330                printf( "  Backup on tier %d\n", (int)tier );
    13311331            else
    1332                 printf( "  Active in tier #%d\n", (int)tier );
     1332                printf( "  Active in tier %d\n", (int)tier );
    13331333
    13341334            if( !isBackup )
    13351335            {
    1336                 if( hasAnnounced )
     1336                if( hasAnnounced && announceState != TR_TRACKER_INACTIVE )
    13371337                {
    13381338                    tr_strltime( buf, now - lastAnnounceTime, sizeof( buf ) );
  • trunk/gtk/details.c

    r11132 r11211  
    18221822    if( !st->isBackup )
    18231823    {
    1824         if( st->hasAnnounced )
     1824        if( st->hasAnnounced && st->announceState != TR_TRACKER_INACTIVE )
    18251825        {
    18261826            g_string_append_c( gstr, '\n' );
     
    18411841        {
    18421842            case TR_TRACKER_INACTIVE:
    1843                 if( !st->hasAnnounced ) {
    1844                     g_string_append_c( gstr, '\n' );
    1845                     g_string_append( gstr, _( "No updates scheduled" ) );
    1846                 }
     1843                g_string_append_c( gstr, '\n' );
     1844                g_string_append( gstr, _( "No updates scheduled" ) );
    18471845                break;
    18481846            case TR_TRACKER_WAITING:
  • trunk/qt/tracker-delegate.cc

    r11097 r11211  
    153153    if( !inf.st.isBackup )
    154154    {
    155         if( inf.st.hasAnnounced )
     155        if( inf.st.hasAnnounced && inf.st.announceState != TR_TRACKER_INACTIVE )
    156156        {
    157157            const QString tstr( timeToStringRounded( now - inf.st.lastAnnounceTime ) );
     
    185185        {
    186186            case TR_TRACKER_INACTIVE:
    187                 if( !inf.st.hasAnnounced ) {
    188                     str += "<br/>\n";
    189                     str += tr( "No updates scheduled" );
    190                 }
     187                str += "<br/>\n";
     188                str += tr( "No updates scheduled" );
    191189                break;
    192190
Note: See TracChangeset for help on using the changeset viewer.