mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 03:28:41 -07:00
Fix total values for "Seeds" & "Peers"
This commit is contained in:
parent
b0a5c973a5
commit
1a010cbfc6
2 changed files with 6 additions and 6 deletions
|
@ -185,9 +185,9 @@ QVariant TorrentModel::data(const QModelIndex &index, int role) const
|
|||
case TR_STATUS:
|
||||
return static_cast<int>(torrent->state());
|
||||
case TR_SEEDS:
|
||||
return (role == Qt::DisplayRole) ? torrent->seedsCount() : torrent->completeCount();
|
||||
return (role == Qt::DisplayRole) ? torrent->seedsCount() : torrent->totalSeedsCount();
|
||||
case TR_PEERS:
|
||||
return (role == Qt::DisplayRole) ? (torrent->peersCount() - torrent->seedsCount()) : torrent->incompleteCount();
|
||||
return (role == Qt::DisplayRole) ? torrent->leechsCount() : torrent->totalLeechersCount();
|
||||
case TR_DLSPEED:
|
||||
return torrent->downloadPayloadRate();
|
||||
case TR_UPSPEED:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue