[orca/new-settings] Fix issue with importing file when there is no keybindings or pronunciations in it
- From: Juanje Ojeda Croissier <jojeda src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/new-settings] Fix issue with importing file when there is no keybindings or pronunciations in it
- Date: Tue, 2 Nov 2010 02:27:03 +0000 (UTC)
commit 981c071c9774c5fe93d4efa8020c249bf32b9019
Author: Juanje Ojeda <jojeda emergya es>
Date: Tue Nov 2 03:24:45 2010 +0100
Fix issue with importing file when there is no keybindings or pronunciations in it
src/orca/settings_manager.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/settings_manager.py b/src/orca/settings_manager.py
index adf9fbb..ff1459e 100644
--- a/src/orca/settings_manager.py
+++ b/src/orca/settings_manager.py
@@ -406,8 +406,8 @@ class SettingsManager():
if key not in ['pronunciations', 'keybindings']:
general[key] = value
- pronunciations = prefs['pronunciations']
- keybindings = prefs['keybindings']
+ pronunciations = prefs.get('pronunciations', {})
+ keybindings = prefs.get('keybindings', {})
self.saveSettings(general, pronunciations, keybindings)
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]