From ad918651a540a8e8e2b489ee4df108155d7dcb21 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 28 Jun 2012 18:10:22 +0300 Subject: [PATCH] Fix torrent availability computation --- src/qtlibtorrent/qtorrenthandle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qtlibtorrent/qtorrenthandle.cpp b/src/qtlibtorrent/qtorrenthandle.cpp index 6b17fcb5b..fded9241b 100644 --- a/src/qtlibtorrent/qtorrenthandle.cpp +++ b/src/qtlibtorrent/qtorrenthandle.cpp @@ -556,7 +556,7 @@ void QTorrentHandle::downloading_pieces(bitfield &bf) const { bool QTorrentHandle::has_metadata() const { #if LIBTORRENT_VERSION_MINOR > 15 - return torrent_handle::status(query_distributed_copies).has_metadata; + return torrent_handle::status(0x0).has_metadata; #else return torrent_handle::has_metadata(); #endif @@ -564,7 +564,7 @@ bool QTorrentHandle::has_metadata() const { float QTorrentHandle::distributed_copies() const { #if LIBTORRENT_VERSION_MINOR > 15 -return torrent_handle::status(0x0).distributed_copies; +return torrent_handle::status(query_distributed_copies).distributed_copies; #else return torrent_handle::status().distributed_copies; #endif