diff options
author | Stefan Dombrowski <stefan@uni-bonn.de> | 2010-10-18 00:53:52 +0200 |
---|---|---|
committer | Stefan Dombrowski <stefan@uni-bonn.de> | 2010-10-18 00:53:52 +0200 |
commit | 11c6210b6190111657f7cccf33187ac4d7050a1f (patch) | |
tree | 72cd66d2bff424dacd869cfd0fb9b90b55548f5f /src/gui/setup_video.cpp | |
parent | de8317bc5ac2d6ab3d60697a660a7bf49e7dedc5 (diff) | |
download | mana-11c6210b6190111657f7cccf33187ac4d7050a1f.tar.gz mana-11c6210b6190111657f7cccf33187ac4d7050a1f.tar.bz2 mana-11c6210b6190111657f7cccf33187ac4d7050a1f.tar.xz mana-11c6210b6190111657f7cccf33187ac4d7050a1f.zip |
Fixing saving of lowcpu value in config
Trivial fix.
Diffstat (limited to 'src/gui/setup_video.cpp')
-rw-r--r-- | src/gui/setup_video.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp index 329b70d1..fd7022c0 100644 --- a/src/gui/setup_video.cpp +++ b/src/gui/setup_video.cpp @@ -476,9 +476,6 @@ void Setup_Video::apply() new OkDialog(_("Low CPU Mode Enabled"), _("You must restart to prevent graphical errors.")); } - - mLowCPUEnabled = true; - config.setValue("lowcpu", true); } else { @@ -487,10 +484,8 @@ void Setup_Video::apply() new OkDialog(_("Low CPU Mode Disabled"), _("You must restart to apply changes.")); } - - mLowCPUEnabled = false; - config.setValue("lowcpu", false); } + config.setValue("lowcpu", mLowCPUCheckBox->isSelected()); mFps = mFpsCheckBox->isSelected() ? (int) mFpsSlider->getValue() : 0; mFpsSlider->setEnabled(mFps > 0); @@ -679,7 +674,8 @@ void Setup_Video::action(const gcn::ActionEvent &event) mLowCPUCheckBox->setSelected(false); mLowCPUCheckBox->setEnabled(false); } - else{ + else + { mLowCPUCheckBox->setEnabled(true); } // Disable gui opacity slider when disabling transparency. |