[orca] Be sure we are using the default voice if the requested voice undefined
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Be sure we are using the default voice if the requested voice undefined
- Date: Fri, 12 Sep 2014 20:39:59 +0000 (UTC)
commit e54307f03d542040aebad99be0408f9eb2870160
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Sep 12 16:37:35 2014 -0400
Be sure we are using the default voice if the requested voice undefined
src/orca/speech_generator.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/speech_generator.py b/src/orca/speech_generator.py
index cb7a760..0470733 100644
--- a/src/orca/speech_generator.py
+++ b/src/orca/speech_generator.py
@@ -1914,7 +1914,7 @@ class SpeechGenerator(generator.Generator):
voicename = voiceType.get(key) or voiceType.get(DEFAULT)
voices = _settingsManager.getSetting('voices')
rv = voices.get(voicename)
- if rv and rv.get('established') == False:
- rv.pop('established')
+ if not rv or rv.get('established') == False:
+ rv = voices.get(voiceType.get(DEFAULT))
return [acss.ACSS(rv)]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]