From d15a17702722451314d5bb3513f37c77b8d82143 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 20 Nov 2009 18:42:32 +0000 Subject: [PATCH] - Fix the status display of queued checking torrents --- src/transferlistwidget.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/transferlistwidget.cpp b/src/transferlistwidget.cpp index 7c287a8a7..7d7a8c3e7 100644 --- a/src/transferlistwidget.cpp +++ b/src/transferlistwidget.cpp @@ -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), s); } - s = STATE_QUEUED; - listModel->setData(listModel->index(row, STATUS), STATE_QUEUED); // Reset speeds and seeds/leech listModel->setData(listModel->index(row, DLSPEED), QVariant((double)0.)); listModel->setData(listModel->index(row, UPSPEED), QVariant((double)0.));