mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
- Fix torrent priority update
This commit is contained in:
parent
33324c190e
commit
52638a2891
1 changed files with 3 additions and 3 deletions
|
@ -190,7 +190,6 @@ void TransferListWidget::updateTorrent(int row) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
if(h.is_paused()) return;
|
|
||||||
if(!h.is_seed()) {
|
if(!h.is_seed()) {
|
||||||
// Queueing code
|
// Queueing code
|
||||||
if(BTSession->isQueueingEnabled()) {
|
if(BTSession->isQueueingEnabled()) {
|
||||||
|
@ -211,6 +210,7 @@ void TransferListWidget::updateTorrent(int row) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(h.is_paused()) return;
|
||||||
// Update
|
// Update
|
||||||
listModel->setData(listModel->index(row, PROGRESS), QVariant((double)h.progress()));
|
listModel->setData(listModel->index(row, PROGRESS), QVariant((double)h.progress()));
|
||||||
listModel->setData(listModel->index(row, DLSPEED), QVariant((double)h.download_payload_rate()));
|
listModel->setData(listModel->index(row, DLSPEED), QVariant((double)h.download_payload_rate()));
|
||||||
|
@ -421,9 +421,9 @@ void TransferListWidget::increasePrioSelectedTorrents() {
|
||||||
QTorrentHandle h = BTSession->getTorrentHandle(getHashFromRow(index.row()));
|
QTorrentHandle h = BTSession->getTorrentHandle(getHashFromRow(index.row()));
|
||||||
if(h.is_valid() && !h.is_seed()) {
|
if(h.is_valid() && !h.is_seed()) {
|
||||||
BTSession->increaseDlTorrentPriority(h.hash());
|
BTSession->increaseDlTorrentPriority(h.hash());
|
||||||
updateTorrent(index.row());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
refreshList();
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: Should work only if the tab is displayed
|
// FIXME: Should work only if the tab is displayed
|
||||||
|
@ -433,9 +433,9 @@ void TransferListWidget::decreasePrioSelectedTorrents() {
|
||||||
QTorrentHandle h = BTSession->getTorrentHandle(getHashFromRow(index.row()));
|
QTorrentHandle h = BTSession->getTorrentHandle(getHashFromRow(index.row()));
|
||||||
if(h.is_valid() && !h.is_seed()) {
|
if(h.is_valid() && !h.is_seed()) {
|
||||||
BTSession->decreaseDlTorrentPriority(h.hash());
|
BTSession->decreaseDlTorrentPriority(h.hash());
|
||||||
updateTorrent(index.row());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
refreshList();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TransferListWidget::buySelectedTorrents() const {
|
void TransferListWidget::buySelectedTorrents() const {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue