mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-29 13:58:51 +03:00
Small fixes.
This commit is contained in:
parent
1d27fa9c03
commit
73132afe6c
2 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||||
|
|
|
@ -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…
Reference in a new issue