mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
Force progress update on torrent pausing
This commit is contained in:
parent
e048389dea
commit
53500ea005
1 changed files with 1 additions and 0 deletions
|
@ -259,6 +259,7 @@ void TransferListWidget::pauseTorrent(int row, bool refresh_list) {
|
|||
const QTorrentHandle h = BTSession->getTorrentHandle(getHashFromRow(row));
|
||||
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_PROGRESS), h.progress());
|
||||
if(h.is_seed()) {
|
||||
listModel->setData(listModel->index(row, TR_STATUS), STATE_PAUSED_UP);
|
||||
if(h.has_error() || TorrentPersistentData::hasError(h.hash())) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue