From 11c6210b6190111657f7cccf33187ac4d7050a1f Mon Sep 17 00:00:00 2001 From: Stefan Dombrowski Date: Mon, 18 Oct 2010 00:53:52 +0200 Subject: Fixing saving of lowcpu value in config Trivial fix. --- src/gui/setup_video.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/gui/setup_video.cpp') 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. -- cgit v1.2.3-70-g09d2