Browse Source

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

adaptive-webui-19844
sledgehammer999 12 years ago
parent
commit
0fa0be2d0e
  1. 2
      src/qtlibtorrent/qtorrenthandle.cpp

2
src/qtlibtorrent/qtorrenthandle.cpp

@ -135,7 +135,7 @@ float QTorrentHandle::progress() const { @@ -135,7 +135,7 @@ float QTorrentHandle::progress() const {
bitfield QTorrentHandle::pieces() const {
#if LIBTORRENT_VERSION_MINOR > 15
return torrent_handle::status(0x0).pieces;
return torrent_handle::status(torrent_handle::query_pieces).pieces;
#else
return torrent_handle::status().pieces;
#endif

Loading…
Cancel
Save