[orca/new-settings] Fix for what gets written out by the yaml backend when saving multiple profiles



commit fc23468ff0c090819c6ddbed20944eb2f0bf0cd9
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Fri Oct 29 01:17:33 2010 -0400

    Fix for what gets written out by the yaml backend when saving multiple profiles

 src/orca/settings_manager.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/settings_manager.py b/src/orca/settings_manager.py
index 5244b26..c8c7d73 100644
--- a/src/orca/settings_manager.py
+++ b/src/orca/settings_manager.py
@@ -283,9 +283,13 @@ class SettingsManager():
         as the profile's."""
         activeGeneral = self.getGeneralSettings()
         self.profileGeneral = {}
+        isSameProfile = activeGeneral.get('profile') == general.get('profile')
         for key, value in general.items():
             if key in ['pronunciations', 'keybindings']:
                 continue
+            if not isSameProfile:
+                if value != self.defaultGeneralValues.get(key):
+                    self.profileGeneral[key] = value
             elif value != activeGeneral.get(key):
                 self.profileGeneral[key] = value
 



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