Browse Source

- Display the right icon for active uploads in UI transfer list (Web UI was ok)

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
62fad5df87
  1. 2
      src/transferlistwidget.cpp

2
src/transferlistwidget.cpp

@ -362,8 +362,10 @@ int TransferListWidget::updateTorrent(int row) {
case torrent_status::seeding: case torrent_status::seeding:
if(h.upload_payload_rate() > 0) { if(h.upload_payload_rate() > 0) {
s = STATE_SEEDING; s = STATE_SEEDING;
listModel->setData(listModel->index(row, TR_NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/uploading.png"))), Qt::DecorationRole);
} else { } else {
s = STATE_STALLED_UP; 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 // Common to both downloads and uploads

Loading…
Cancel
Save