From 62fad5df87184dd9a2a9d9f7f7bcb615b156a22d Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 27 Nov 2009 16:11:22 +0000 Subject: [PATCH] - Display the right icon for active uploads in UI transfer list (Web UI was ok) --- src/transferlistwidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/transferlistwidget.cpp b/src/transferlistwidget.cpp index 675b1c8c6..760c3962d 100644 --- a/src/transferlistwidget.cpp +++ b/src/transferlistwidget.cpp @@ -362,8 +362,10 @@ int TransferListWidget::updateTorrent(int row) { case torrent_status::seeding: if(h.upload_payload_rate() > 0) { s = STATE_SEEDING; + listModel->setData(listModel->index(row, TR_NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/uploading.png"))), Qt::DecorationRole); } else { s = STATE_STALLED_UP; + listModel->setData(listModel->index(row, TR_NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/stalledUP.png"))), Qt::DecorationRole); } } // Common to both downloads and uploads