[orca/new-settings] Move up the pronunciations and keybindings one level when we store them at one profile, so we don't



commit 48661c9dd93ca2d2c8fe3490a0bf3cb94129c468
Author: Juanje Ojeda <jojeda emergya es>
Date:   Wed Oct 27 05:38:36 2010 +0200

    Move up the pronunciations and keybindings one level when we
    store them at one profile, so we don't get false profiles

 src/orca/backends/yaml_backend.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/backends/yaml_backend.py b/src/orca/backends/yaml_backend.py
index 29ea93b..73b72fb 100644
--- a/src/orca/backends/yaml_backend.py
+++ b/src/orca/backends/yaml_backend.py
@@ -66,9 +66,10 @@ class Backend:
         if profile is None:
             profile = 'default'
 
-        profilePrefs = {profile: general,
-                        'pronunciations': pronunciations,
-                        'keybindings': keybindings}
+        general['pronunciations'] = pronunciations
+        general['keybindings'] = keybindings
+        profilePrefs = {profile: general}
+
         self._getSettings()
         prefs = {'general': self.general,
                  'profiles': profilePrefs,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]