mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 12:34:19 +00:00
FEATURE: Download first/last pieces first when sequential download is
enabled (Thanks Ahmad)
This commit is contained in:
parent
a4b6228542
commit
2707bf6349
@ -12,6 +12,8 @@
|
|||||||
- FEATURE: Added "Amount downloaded/left" columns to transfer list
|
- FEATURE: Added "Amount downloaded/left" columns to transfer list
|
||||||
- FEATURE: Simplified proxy settings
|
- FEATURE: Simplified proxy settings
|
||||||
- FEATURE: Optimized and improved the peer country resolution code
|
- 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)
|
- BUGFIX: Fix SOCKS5 proxy authentication in search engine(closes #680072)
|
||||||
- COSMETIC: Replaced message box by on-screen notification for download errors
|
- COSMETIC: Replaced message box by on-screen notification for download errors
|
||||||
- COSMETIC: Improved the torrent creation tool appearance
|
- COSMETIC: Improved the torrent creation tool appearance
|
||||||
|
@ -562,7 +562,10 @@ void TransferListWidget::toggleSelectedTorrentsSequentialDownload() const {
|
|||||||
foreach(const QString &hash, hashes) {
|
foreach(const QString &hash, hashes) {
|
||||||
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
||||||
if(h.is_valid() && h.has_metadata()) {
|
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…
x
Reference in New Issue
Block a user