mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-09-05 18:42:22 +00:00
Fix possible transfer list refresh issue
This commit is contained in:
parent
1875846326
commit
3664134e02
@ -371,7 +371,10 @@ int TransferListWidget::updateTorrent(int row) {
|
||||
if(!isColumnHidden(TR_DLLIMIT))
|
||||
listModel->setData(listModel->index(row, TR_DLLIMIT), QVariant((qlonglong)h.download_limit()));
|
||||
// Queueing code
|
||||
if(!h.is_seed() && BTSession->isQueueingEnabled()) {
|
||||
if(BTSession->isQueueingEnabled()) {
|
||||
if(h.is_seed())
|
||||
listModel->setData(listModel->index(row, TR_PRIORITY), -1);
|
||||
else
|
||||
listModel->setData(listModel->index(row, TR_PRIORITY), QVariant((int)h.queue_position()));
|
||||
if(h.is_queued()) {
|
||||
if(h.state() == torrent_status::checking_files || h.state() == torrent_status::queued_for_checking) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user