mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 23:07:59 +00:00
- Fix the status display of queued checking torrents
This commit is contained in:
parent
5d427d2acf
commit
d15a177027
@ -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…
Reference in New Issue
Block a user