aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/options.cpp1
-rw-r--r--gui/widgets/popup.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/gui/options.cpp b/gui/options.cpp
index 71f8cadd15..b82bfc6440 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -2161,6 +2161,7 @@ void GlobalOptionsDialog::apply() {
guiLang.setChar('\0', 2);
ttsMan->setLanguage(guiLang);
}
+ _ttsVoiceSelectionPopUp->setSelectedTag(0);
}
int volume = (ConfMan.getInt("speech_volume", "scummvm") * 100) / 256;
if (ConfMan.hasKey("mute", "scummvm") && ConfMan.getBool("mute", "scummvm"))
diff --git a/gui/widgets/popup.h b/gui/widgets/popup.h
index a898479410..3ccf8787d5 100644
--- a/gui/widgets/popup.h
+++ b/gui/widgets/popup.h
@@ -77,7 +77,7 @@ public:
uint32 getSelectedTag() const { return (_selectedItem >= 0) ? _entries[_selectedItem].tag : (uint32)-1; }
// const String& getSelectedString() const { return (_selectedItem >= 0) ? _entries[_selectedItem].name : String::emptyString; }
- void handleMouseEntered(int button) { read(_entries[_selectedItem].name); setFlags(WIDGET_HILITED); markAsDirty(); }
+ void handleMouseEntered(int button) { if (_selectedItem != -1) read(_entries[_selectedItem].name); setFlags(WIDGET_HILITED); markAsDirty(); }
void handleMouseLeft(int button) { clearFlags(WIDGET_HILITED); markAsDirty(); }
virtual void reflowLayout();