Ticket #9189: fix_subtitle_options.txt

File fix_subtitle_options.txt, 1.2 KB (added by fuzzie, 14 years ago)
Line 
1diff --git a/gui/options.cpp b/gui/options.cpp
2index 780670e..101308e 100644
3--- a/gui/options.cpp
4+++ b/gui/options.cpp
5@@ -269,7 +269,7 @@ void OptionsDialog::open() {
6 int speed;
7 int sliderMaxValue = _subSpeedSlider->getMaxValue();
8
9- _subMode = getSubtitleMode(ConfMan.getBool("subtitles", _domain), ConfMan.getBool("speech_mute", _domain));
10+ int _subMode = getSubtitleMode(ConfMan.getBool("subtitles", _domain), ConfMan.getBool("speech_mute", _domain));
11 _subToggleGroup->setValue(_subMode);
12
13 // Engines that reuse the subtitle speed widget set their own max value.
14@@ -401,7 +401,7 @@ void OptionsDialog::close() {
15 int talkspeed;
16 int sliderMaxValue = _subSpeedSlider->getMaxValue();
17
18- switch (_subMode) {
19+ switch (_subToggleGroup->getValue()) {
20 case kSubtitlesSpeech:
21 subtitles = speech_mute = false;
22 break;
23diff --git a/gui/options.h b/gui/options.h
24index fab25eb..cc62a30 100644
25--- a/gui/options.h
26+++ b/gui/options.h
27@@ -125,7 +125,6 @@ private:
28 RadiobuttonWidget *_subToggleSubOnly;
29 RadiobuttonWidget *_subToggleSpeechOnly;
30 RadiobuttonWidget *_subToggleSubBoth;
31- int _subMode;
32 static const char *_subModeDesc[];
33 static const char *_lowresSubModeDesc[];
34 StaticTextWidget *_subSpeedDesc;