[orca/new-settings] Fix bug in which once a value was saved to the active profile, it could never be saved again.
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/new-settings] Fix bug in which once a value was saved to the active profile, it could never be saved again.
- Date: Fri, 29 Oct 2010 00:49:41 +0000 (UTC)
commit 3b5832d4f8687b532b09ecdc5b785013c510b113
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Thu Oct 28 20:44:30 2010 -0400
Fix bug in which once a value was saved to the active profile, it could never be saved again.
src/orca/settings_manager.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/settings_manager.py b/src/orca/settings_manager.py
index cca483e..8972c8d 100644
--- a/src/orca/settings_manager.py
+++ b/src/orca/settings_manager.py
@@ -281,11 +281,13 @@ class SettingsManager():
def _setProfileGeneral(self, general):
"""Set the changed general settings from the defaults' ones
as the profile's."""
+ activeProfile = general.get('activeProfile')
+ activeGeneral = self.getGeneralSettings()
self.profileGeneral = {}
for key, value in general.items():
if key in ['pronunciations', 'keybindings']:
continue
- elif value != self.defaultGeneralValues[key]:
+ elif value != activeGeneral.get(key):
self.profileGeneral[key] = value
def _setProfilePronunciations(self, pronunciations):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]