mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
- Added a workaround fix for a bug in libtorrent regarding set_priority_up() function
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user