mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-09 09:02:31 -06:00
Fix possible transfer list refresh problem
This commit is contained in:
@@ -367,7 +367,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) {
|
||||
|
||||
Reference in New Issue
Block a user