From 7679b852b82a993141c28443a58eac75397ea043 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 21 Feb 2012 19:53:13 +0200 Subject: [PATCH] BUGFIX: Fix download first/last pieces state reporting --- Changelog | 3 +++ src/qtlibtorrent/qtorrenthandle.cpp | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index b2af5455b..caab81995 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,6 @@ +* unreleased - Christophe Dumez - v2.9.6 + - BUGFIX: Fix download first/last pieces state reporting + * Sat Feb 18 2012 - Christophe Dumez - v2.9.5 - BUGFIX: Fix crash when disabling then reenabling RSS - BUGFIX: Fix duplicate torrent detection when adding a magnet link diff --git a/src/qtlibtorrent/qtorrenthandle.cpp b/src/qtlibtorrent/qtorrenthandle.cpp index a31897cb3..6b17fcb5b 100644 --- a/src/qtlibtorrent/qtorrenthandle.cpp +++ b/src/qtlibtorrent/qtorrenthandle.cpp @@ -169,7 +169,6 @@ bool QTorrentHandle::first_last_piece_first() const { if(misc::isPreviewable(ext) && torrent_handle::file_priority(index) > 0) { break; } - ++index; } if(index >= torrent_handle::get_torrent_info().num_files()) return false; file_entry media_file = torrent_handle::get_torrent_info().file_at(index);