mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Added 'Ratio Limit' column. Closes #936.
This commit is contained in:
parent
e0190d5576
commit
e294b2f456
5 changed files with 20 additions and 10 deletions
|
@ -1970,9 +1970,11 @@ qreal QBtSession::getMaxRatioPerTorrent(const QString &hash, bool *usesGlobalRat
|
|||
qreal ratio_limit = TorrentPersistentData::getRatioLimit(hash);
|
||||
if (ratio_limit == TorrentPersistentData::USE_GLOBAL_RATIO) {
|
||||
ratio_limit = global_ratio_limit;
|
||||
*usesGlobalRatio = true;
|
||||
if (usesGlobalRatio)
|
||||
*usesGlobalRatio = true;
|
||||
} else {
|
||||
*usesGlobalRatio = false;
|
||||
if (usesGlobalRatio)
|
||||
*usesGlobalRatio = false;
|
||||
}
|
||||
return ratio_limit;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue