Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions source/gui/settingsDialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -983,9 +983,17 @@ def onPanelDeactivated(self):
super(SpeechSettingsPanel,self).onPanelDeactivated()

def onDiscard(self):
# Work around wxAssertion error #12220
# Manually destroying the ExpandoTextCtrl when the settings dialog is
# exited prevents the wxAssertion.
self.synthNameCtrl.Destroy()
self.voicePanel.onDiscard()

def onSave(self):
# Work around wxAssertion error #12220
# Manually destroying the ExpandoTextCtrl when the settings dialog is
# exited prevents the wxAssertion.
self.synthNameCtrl.Destroy()
self.voicePanel.onSave()

class SynthesizerSelectionDialog(SettingsDialog):
Expand Down Expand Up @@ -3194,9 +3202,17 @@ def onPanelDeactivated(self):
super(BrailleSettingsPanel,self).onPanelDeactivated()

def onDiscard(self):
# Work around wxAssertion error #12220
# Manually destroying the ExpandoTextCtrl when the settings dialog is
# exited prevents the wxAssertion.
self.displayNameCtrl.Destroy()
self.brailleSubPanel.onDiscard()

def onSave(self):
# Work around wxAssertion error #12220
# Manually destroying the ExpandoTextCtrl when the settings dialog is
# exited prevents the wxAssertion.
self.displayNameCtrl.Destroy()
self.brailleSubPanel.onSave()


Expand Down