"Downloaded pieces" bar now displays in yellow the pieces being downloaded

This commit is contained in:
Christophe Dumez 2010-03-18 22:58:32 +00:00
parent 419d719ab8
commit af3755bf91
4 changed files with 45 additions and 12 deletions

View file

@ -338,7 +338,9 @@ void PropertiesWidget::loadDynamicData() {
if(!h.is_seed()) {
showPiecesDownloaded(true);
// Downloaded pieces
downloaded_pieces->setProgress(h.pieces());
bitfield bf(h.get_torrent_info().num_pieces(), 0);
h.downloading_pieces(bf);
downloaded_pieces->setProgress(h.pieces(), bf);
// Pieces availability
if(h.has_metadata() && !h.is_paused() && !h.is_queued() && !h.is_checking()) {
showPiecesAvailability(true);