1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 15:27:54 +00:00

Pass the correct flag in torrent_handle::status for libtorrent > 0.15

This commit is contained in:
sledgehammer999 2013-03-10 17:08:40 +02:00
parent 4e0dc5d51a
commit 0fa0be2d0e

View File

@ -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