mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
- Fix seeds/leech and ETA display of torrents started in pause
This commit is contained in:
parent
6a028c9efd
commit
bf727c11d3
1 changed files with 2 additions and 0 deletions
|
@ -130,6 +130,8 @@ void TransferListWidget::addTorrent(QTorrentHandle& h) {
|
|||
listModel->insertRow(row);
|
||||
listModel->setData(listModel->index(row, NAME), QVariant(h.name()));
|
||||
listModel->setData(listModel->index(row, SIZE), QVariant((qlonglong)h.actual_size()));
|
||||
listModel->setData(listModel->index(row, ETA), QVariant((qlonglong)-1));
|
||||
listModel->setData(listModel->index(row, SEEDSLEECH), QVariant(QString::fromUtf8("0/0")));
|
||||
if(BTSession->isQueueingEnabled() && !h.is_seed())
|
||||
listModel->setData(listModel->index(row, PRIORITY), QVariant((int)BTSession->getDlTorrentPriority(h.hash())));
|
||||
listModel->setData(listModel->index(row, HASH), QVariant(h.hash()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue