mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-25 14:04:23 +00:00
- Added a workaround fix for a bug in libtorrent regarding set_priority_up() function
This commit is contained in:
parent
88f0ffe86d
commit
25adf6b061
@ -147,6 +147,8 @@ 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);
|
||||||
|
// Check due to bug http://code.rasterbar.com/libtorrent/ticket/455
|
||||||
|
if(h.queue_position() > 0)
|
||||||
h.queue_position_up();
|
h.queue_position_up();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user