mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Fix the status display of queued checking torrents
This commit is contained in:
parent
5d427d2acf
commit
d15a177027
1 changed files with 4 additions and 2 deletions
|
@ -246,12 +246,14 @@ int TransferListWidget::updateTorrent(int row) {
|
|||
if(h.state() == torrent_status::checking_files || h.state() == torrent_status::queued_for_checking) {
|
||||
listModel->setData(listModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/oxygen/run-build.png"))), Qt::DecorationRole);
|
||||
listModel->setData(listModel->index(row, PROGRESS), QVariant((double)h.progress()));
|
||||
s = STATE_CHECKING;
|
||||
listModel->setData(listModel->index(row, STATUS), s);
|
||||
}else {
|
||||
listModel->setData(listModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/oxygen/mail-queue.png"))), Qt::DecorationRole);
|
||||
listModel->setData(listModel->index(row, ETA), QVariant((qlonglong)-1));
|
||||
}
|
||||
s = STATE_QUEUED;
|
||||
listModel->setData(listModel->index(row, STATUS), STATE_QUEUED);
|
||||
listModel->setData(listModel->index(row, STATUS), s);
|
||||
}
|
||||
// Reset speeds and seeds/leech
|
||||
listModel->setData(listModel->index(row, DLSPEED), QVariant((double)0.));
|
||||
listModel->setData(listModel->index(row, UPSPEED), QVariant((double)0.));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue