mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06:00
Added 'Ratio Limit' column. Closes #936.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user