From ec3d45fc99491fda8def02e9e761eb6397ef5a7e Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 2 Jan 2011 14:02:27 +0000 Subject: [PATCH] Prioritize first and last pieces when sequential download is enabled --- Changelog | 2 ++ src/qtlibtorrent/qbtsession.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/Changelog b/Changelog index 1b2fe420d..85fd020dd 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,7 @@ * Unreleased - Christophe Dumez - v2.5.4 - BUGFIX: Added --enable-debug parameter to the configure script + - BUGFIX: Prioritize first and last pieces when sequential download is enabled + - BUGFIX: Some encoding fixes (Windows) * Sat Jan 1 2011 - Christophe Dumez - v2.5.3 - BUGFIX: Fix priority up/down for multiple torrents at the same time (closes #692184) diff --git a/src/qtlibtorrent/qbtsession.cpp b/src/qtlibtorrent/qbtsession.cpp index 0c61a5201..772002e5c 100644 --- a/src/qtlibtorrent/qbtsession.cpp +++ b/src/qtlibtorrent/qbtsession.cpp @@ -1157,6 +1157,7 @@ void QBtSession::loadTorrentTempData(QTorrentHandle h, QString savePath, bool ma if(TorrentTempData::hasTempData(hash)) { // sequential download h.set_sequential_download(TorrentTempData::isSequential(hash)); + h.prioritize_first_last_piece(TorrentTempData::isSequential(hash)); // The following is useless for newly added magnet if(!magnet) {