Changeset 117 for trunk/gtk/dialogs.c


Ignore:
Timestamp:
Feb 10, 2006, 5:58:08 AM (16 years ago)
Author:
joshe
Message:

Display an unknown number of seeders or leechers as ? instead of -1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/dialogs.c

    r96 r117  
    421421  INFOLINEF(table, ii, "%i", _("Pieces:"), sb[id].info.pieceCount);
    422422  INFOLINEA(table, ii, _("Total Size:"), readablesize(sb[id].info.totalSize, 1));
    423   INFOLINEF(table, ii, "%i", _("Seeders:"), sb[id].seeders);
    424   INFOLINEF(table, ii, "%i", _("Leechers:"), sb[id].leechers);
     423  if(0 > sb[id].seeders)
     424    INFOLINE(table, ii, _("Seeders:"), _("?"));
     425  else
     426    INFOLINEF(table, ii, "%i", _("Seeders:"), sb[id].seeders);
     427  if(0 > sb[id].leechers)
     428    INFOLINE(table, ii, _("Leechers:"), _("?"));
     429  else
     430    INFOLINEF(table, ii, "%i", _("Leechers:"), sb[id].leechers);
    425431
    426432  INFOSEP(table, ii);
Note: See TracChangeset for help on using the changeset viewer.