Browse Source

FEATURE: Download first/last pieces first when sequential download is

enabled (Thanks Ahmad)
adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
2707bf6349
  1. 2
      Changelog
  2. 5
      src/transferlistwidget.cpp

2
Changelog

@ -12,6 +12,8 @@ @@ -12,6 +12,8 @@
- FEATURE: Added "Amount downloaded/left" columns to transfer list
- FEATURE: Simplified proxy settings
- FEATURE: Optimized and improved the peer country resolution code
- FEATURE: Download first/last pieces first when sequential download is
enabled (Thanks Ahmad)
- BUGFIX: Fix SOCKS5 proxy authentication in search engine(closes #680072)
- COSMETIC: Replaced message box by on-screen notification for download errors
- COSMETIC: Improved the torrent creation tool appearance

5
src/transferlistwidget.cpp

@ -562,7 +562,10 @@ void TransferListWidget::toggleSelectedTorrentsSequentialDownload() const { @@ -562,7 +562,10 @@ void TransferListWidget::toggleSelectedTorrentsSequentialDownload() const {
foreach(const QString &hash, hashes) {
QTorrentHandle h = BTSession->getTorrentHandle(hash);
if(h.is_valid() && h.has_metadata()) {
h.set_sequential_download(!h.is_sequential_download());
bool was_sequential = h.is_sequential_download();
h.set_sequential_download(!was_sequential);
if(!was_sequential)
h.prioritize_first_last_piece(true);
}
}
}

Loading…
Cancel
Save