From 4a6ab376af78924e7d2ad62fe686d54ec6023452 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 26 Dec 2008 19:14:19 +0000 Subject: [PATCH] - Workaround for is_seed bug: http://code.rasterbar.com/libtorrent/ticket/402 --- src/qtorrenthandle.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qtorrenthandle.cpp b/src/qtorrenthandle.cpp index 3f01fc86c..42eb6bc02 100644 --- a/src/qtorrenthandle.cpp +++ b/src/qtorrenthandle.cpp @@ -283,7 +283,9 @@ int QTorrentHandle::num_uploads() const { bool QTorrentHandle::is_seed() const { Q_ASSERT(h.is_valid()); - return h.is_seed(); + // Affected by bug http://code.rasterbar.com/libtorrent/ticket/402 + //return h.is_seed(); + return (progress() == 1.); } bool QTorrentHandle::is_auto_managed() const {