[orca/new-settings] Fix for: Cannot save multiple profiles in yaml backend.



commit de1436df9e0a914bbc33e5ae7f393d1bff12a78b
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Thu Oct 28 23:20:33 2010 -0400

    Fix for: Cannot save multiple profiles in yaml backend.

 src/orca/backends/yaml_backend.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/backends/yaml_backend.py b/src/orca/backends/yaml_backend.py
index 82e8e24..00a3602 100644
--- a/src/orca/backends/yaml_backend.py
+++ b/src/orca/backends/yaml_backend.py
@@ -46,6 +46,9 @@ class Backend:
     def saveDefaultSettings(self, general, pronunciations, keybindings):
         """ Save default settings for all the properties from
             orca.settings. """
+        if not self.isFirstStart():
+            return
+
         prefs = {'general': general,
                  'profiles': { 'default': { 'profile': ['Default', 'default'],
                                             'pronunciations': {},



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