Browse Source

- Fix the status display of queued checking torrents

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
d15a177027
  1. 6
      src/transferlistwidget.cpp

6
src/transferlistwidget.cpp

@ -246,12 +246,14 @@ int TransferListWidget::updateTorrent(int row) { @@ -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…
Cancel
Save