mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 16:53:08 -07:00
Use c++11 enum classes instead of macros.
This commit is contained in:
parent
12d9898b5d
commit
b519700e33
5 changed files with 16 additions and 32 deletions
|
@ -469,7 +469,7 @@ void options_imp::saveOptions()
|
|||
pref->setEncryptionSetting(getEncryptionSetting());
|
||||
pref->enableAnonymousMode(checkAnonymousMode->isChecked());
|
||||
pref->setGlobalMaxRatio(getMaxRatio());
|
||||
pref->setMaxRatioAction(comboRatioLimitAct->currentIndex());
|
||||
pref->setMaxRatioAction(static_cast<MaxRatioAction>(comboRatioLimitAct->currentIndex()));
|
||||
// End Bittorrent preferences
|
||||
// Misc preferences
|
||||
// * IPFilter
|
||||
|
@ -804,7 +804,7 @@ void options_imp::loadOptions()
|
|||
spinMaxRatio->setEnabled(false);
|
||||
comboRatioLimitAct->setEnabled(false);
|
||||
}
|
||||
comboRatioLimitAct->setCurrentIndex(pref->getMaxRatioAction());
|
||||
comboRatioLimitAct->setCurrentIndex(static_cast<int>(pref->getMaxRatioAction()));
|
||||
// End Bittorrent preferences
|
||||
|
||||
// Web UI preferences
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue