BUGFIX: Fix download first/last pieces state reporting

This commit is contained in:
Christophe Dumez
2012-02-21 19:53:13 +02:00
parent eda04b3ef3
commit 7679b852b8
2 changed files with 3 additions and 1 deletions

View File

@@ -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);