Browse Source

Force progress update on torrent pausing

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
53500ea005
  1. 1
      src/transferlistwidget.cpp

1
src/transferlistwidget.cpp

@ -259,6 +259,7 @@ void TransferListWidget::pauseTorrent(int row, bool refresh_list) {
const QTorrentHandle h = BTSession->getTorrentHandle(getHashFromRow(row)); const QTorrentHandle h = BTSession->getTorrentHandle(getHashFromRow(row));
listModel->setData(listModel->index(row, TR_DLSPEED), QVariant((double)0.0)); listModel->setData(listModel->index(row, TR_DLSPEED), QVariant((double)0.0));
listModel->setData(listModel->index(row, TR_UPSPEED), QVariant((double)0.0)); listModel->setData(listModel->index(row, TR_UPSPEED), QVariant((double)0.0));
listModel->setData(listModel->index(row, TR_PROGRESS), h.progress());
if(h.is_seed()) { if(h.is_seed()) {
listModel->setData(listModel->index(row, TR_STATUS), STATE_PAUSED_UP); listModel->setData(listModel->index(row, TR_STATUS), STATE_PAUSED_UP);
if(h.has_error() || TorrentPersistentData::hasError(h.hash())) { if(h.has_error() || TorrentPersistentData::hasError(h.hash())) {

Loading…
Cancel
Save