Browse Source

Small fixes.

adaptive-webui-19844
Patryk Stępień 13 years ago
parent
commit
73132afe6c
  1. 4
      src/properties/downloadedpiecesbar.cpp
  2. 2
      src/properties/pieceavailabilitybar.cpp

4
src/properties/downloadedpiecesbar.cpp

@ -189,8 +189,8 @@ void DownloadedPiecesBar::updateImage() @@ -189,8 +189,8 @@ void DownloadedPiecesBar::updateImage()
void DownloadedPiecesBar::setProgress(const libtorrent::bitfield &bf, const libtorrent::bitfield &bf_dl)
{
pieces.assign(bf.bytes(), bf.size());
pieces_dl.assign(bf_dl.bytes(), bf_dl.size());
pieces = libtorrent::bitfield(bf);
pieces_dl = libtorrent::bitfield(bf_dl);
updateImage();
update();

2
src/properties/pieceavailabilitybar.cpp

@ -182,7 +182,7 @@ void PieceAvailabilityBar::updateImage() @@ -182,7 +182,7 @@ void PieceAvailabilityBar::updateImage()
void PieceAvailabilityBar::setAvailability(const std::vector<int>& avail)
{
pieces.assign(avail.begin(), avail.end());
pieces = std::vector<int>(avail);
updateImage();
update();

Loading…
Cancel
Save