mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-09-04 01:53:06 +00:00
Merge pull request #494 from sledgehammer999/fix_downloadbar
Fix the downloadbar for libtorrent > 0.16.7
This commit is contained in:
commit
9c7807ded4
@ -135,7 +135,7 @@ float QTorrentHandle::progress() const {
|
|||||||
|
|
||||||
bitfield QTorrentHandle::pieces() const {
|
bitfield QTorrentHandle::pieces() const {
|
||||||
#if LIBTORRENT_VERSION_MINOR > 15
|
#if LIBTORRENT_VERSION_MINOR > 15
|
||||||
return torrent_handle::status(0x0).pieces;
|
return torrent_handle::status(torrent_handle::query_pieces).pieces;
|
||||||
#else
|
#else
|
||||||
return torrent_handle::status().pieces;
|
return torrent_handle::status().pieces;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user