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()
void DownloadedPiecesBar::setProgress(const libtorrent::bitfield &bf, const libtorrent::bitfield &bf_dl) void DownloadedPiecesBar::setProgress(const libtorrent::bitfield &bf, const libtorrent::bitfield &bf_dl)
{ {
pieces.assign(bf.bytes(), bf.size()); pieces = libtorrent::bitfield(bf);
pieces_dl.assign(bf_dl.bytes(), bf_dl.size()); pieces_dl = libtorrent::bitfield(bf_dl);
updateImage(); updateImage();
update(); update();

2
src/properties/pieceavailabilitybar.cpp

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

Loading…
Cancel
Save