mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-25 14:04:23 +00:00
- Fix seeds/leech and ETA display of torrents started in pause
This commit is contained in:
parent
6a028c9efd
commit
bf727c11d3
@ -130,6 +130,8 @@ void TransferListWidget::addTorrent(QTorrentHandle& h) {
|
|||||||
listModel->insertRow(row);
|
listModel->insertRow(row);
|
||||||
listModel->setData(listModel->index(row, NAME), QVariant(h.name()));
|
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, 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())
|
if(BTSession->isQueueingEnabled() && !h.is_seed())
|
||||||
listModel->setData(listModel->index(row, PRIORITY), QVariant((int)BTSession->getDlTorrentPriority(h.hash())));
|
listModel->setData(listModel->index(row, PRIORITY), QVariant((int)BTSession->getDlTorrentPriority(h.hash())));
|
||||||
listModel->setData(listModel->index(row, HASH), QVariant(h.hash()));
|
listModel->setData(listModel->index(row, HASH), QVariant(h.hash()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user