mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-25 14:04:23 +00:00
- Fixed priority display for paused torrents
This commit is contained in:
parent
29886acc01
commit
d5a4794610
@ -489,8 +489,6 @@ bool DownloadingTorrents::updateTorrent(QTorrentHandle h) {
|
|||||||
added = true;
|
added = true;
|
||||||
}
|
}
|
||||||
Q_ASSERT(row != -1);
|
Q_ASSERT(row != -1);
|
||||||
// No need to update a paused torrent
|
|
||||||
if(h.is_paused()) return added;
|
|
||||||
// Update Priority
|
// Update Priority
|
||||||
if(BTSession->isQueueingEnabled()) {
|
if(BTSession->isQueueingEnabled()) {
|
||||||
DLListModel->setData(DLListModel->index(row, PRIORITY), QVariant((int)BTSession->getDlTorrentPriority(hash)));
|
DLListModel->setData(DLListModel->index(row, PRIORITY), QVariant((int)BTSession->getDlTorrentPriority(hash)));
|
||||||
@ -514,6 +512,8 @@ bool DownloadingTorrents::updateTorrent(QTorrentHandle h) {
|
|||||||
return added;
|
return added;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// No need to update a paused torrent
|
||||||
|
if(h.is_paused()) return added;
|
||||||
// Parse download state
|
// Parse download state
|
||||||
// Setting download state
|
// Setting download state
|
||||||
switch(h.state()) {
|
switch(h.state()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user