aboutsummaryrefslogtreecommitdiff
path: root/gui/options.cpp
diff options
context:
space:
mode:
authorThierry Crozat2010-06-20 14:46:00 +0000
committerThierry Crozat2010-06-20 14:46:00 +0000
commitf58c69e65d8dfa7ca924885d86043b84b18a522b (patch)
tree3e67ccc8481a299ab1e9c85b63f8357bdf8dbbfc /gui/options.cpp
parent15ae4d8f595346dffde8be6b186fc696f28c8900 (diff)
downloadscummvm-rg350-f58c69e65d8dfa7ca924885d86043b84b18a522b.tar.gz
scummvm-rg350-f58c69e65d8dfa7ca924885d86043b84b18a522b.tar.bz2
scummvm-rg350-f58c69e65d8dfa7ca924885d86043b84b18a522b.zip
Commit slightly modified version of patch #3018727: fix subtitle options (thanks fuzzie).
svn-id: r50080
Diffstat (limited to 'gui/options.cpp')
-rw-r--r--gui/options.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/options.cpp b/gui/options.cpp
index 780670e78b..7a69c6a25f 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -269,8 +269,8 @@ void OptionsDialog::open() {
int speed;
int sliderMaxValue = _subSpeedSlider->getMaxValue();
- _subMode = getSubtitleMode(ConfMan.getBool("subtitles", _domain), ConfMan.getBool("speech_mute", _domain));
- _subToggleGroup->setValue(_subMode);
+ int subMode = getSubtitleMode(ConfMan.getBool("subtitles", _domain), ConfMan.getBool("speech_mute", _domain));
+ _subToggleGroup->setValue(subMode);
// Engines that reuse the subtitle speed widget set their own max value.
// Scale the config value accordingly (see addSubtitleControls)
@@ -401,7 +401,7 @@ void OptionsDialog::close() {
int talkspeed;
int sliderMaxValue = _subSpeedSlider->getMaxValue();
- switch (_subMode) {
+ switch (_subToggleGroup->getValue()) {
case kSubtitlesSpeech:
subtitles = speech_mute = false;
break;