From 0fa0be2d0ee7b08e9c33d73b5cb35758d72d88ac Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Sun, 10 Mar 2013 17:08:40 +0200 Subject: [PATCH] Pass the correct flag in torrent_handle::status for libtorrent > 0.15 --- src/qtlibtorrent/qtorrenthandle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qtlibtorrent/qtorrenthandle.cpp b/src/qtlibtorrent/qtorrenthandle.cpp index f4ec4c575..5837122ab 100644 --- a/src/qtlibtorrent/qtorrenthandle.cpp +++ b/src/qtlibtorrent/qtorrenthandle.cpp @@ -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