mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 11:38:50 -07:00
- Added a workaround fix for a bug in libtorrent regarding set_priority_up() function
This commit is contained in:
parent
88f0ffe86d
commit
25adf6b061
1 changed files with 3 additions and 1 deletions
|
@ -147,7 +147,9 @@ bool bittorrent::isQueueingEnabled() const {
|
||||||
void bittorrent::increaseDlTorrentPriority(QString hash) {
|
void bittorrent::increaseDlTorrentPriority(QString hash) {
|
||||||
Q_ASSERT(queueingEnabled);
|
Q_ASSERT(queueingEnabled);
|
||||||
QTorrentHandle h = getTorrentHandle(hash);
|
QTorrentHandle h = getTorrentHandle(hash);
|
||||||
h.queue_position_up();
|
// Check due to bug http://code.rasterbar.com/libtorrent/ticket/455
|
||||||
|
if(h.queue_position() > 0)
|
||||||
|
h.queue_position_up();
|
||||||
}
|
}
|
||||||
|
|
||||||
void bittorrent::decreaseDlTorrentPriority(QString hash) {
|
void bittorrent::decreaseDlTorrentPriority(QString hash) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue