FEATURE: Added per-torrent ratio limiting (Christian Kandeler)

This commit is contained in:
Christophe Dumez
2011-03-07 19:26:44 +00:00
parent 4b1eade157
commit 82e41f36ee
15 changed files with 356 additions and 32 deletions

View File

@@ -391,7 +391,7 @@ void options_imp::saveOptions(){
pref.setDHTPort(getDHTPort());
pref.setLSDEnabled(isLSDEnabled());
pref.setEncryptionSetting(getEncryptionSetting());
pref.setMaxRatio(getMaxRatio());
pref.setGlobalMaxRatio(getMaxRatio());
pref.setMaxRatioAction(comboRatioLimitAct->currentIndex());
// End Bittorrent preferences
// Misc preferences
@@ -624,7 +624,7 @@ void options_imp::loadOptions(){
checkLSD->setChecked(pref.isLSDEnabled());
comboEncryption->setCurrentIndex(pref.getEncryptionSetting());
// Ratio limit
floatValue = pref.getMaxRatio();
floatValue = pref.getGlobalMaxRatio();
if(floatValue >= 0.) {
// Enable
checkMaxRatio->setChecked(true);