Changeset 11003 for branches


Ignore:
Timestamp:
Jul 13, 2010, 3:02:23 AM (12 years ago)
Author:
charles
Message:

(2.0x gtk) #3421 "crash when opening properties dialog on a magnet link w/o metainfo" -- fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0x/gtk/details.c

    r10940 r11003  
    786786        for( i=0; i<n; ++i ) {
    787787            const tr_stat * st = stats[i];
     788            const tr_info * inf = infos[i];
    788789            const double v = st->haveValid;
    789790            haveUnchecked += st->haveUnchecked;
    790791            haveValid += v;
    791             verifiedPieces += v / tr_torrentInfo(torrents[i])->pieceSize;
     792            verifiedPieces += inf->pieceSize ? st->haveValid / inf->pieceSize : 0;
    792793            sizeWhenDone += st->sizeWhenDone;
    793794            leftUntilDone += st->leftUntilDone;
Note: See TracChangeset for help on using the changeset viewer.