[orca/new-settings] Fix profile importation issue. The keybinding dictionary was reference instead of copy
- From: Juanje Ojeda Croissier <jojeda src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/new-settings] Fix profile importation issue. The keybinding dictionary was reference instead of copy
- Date: Thu, 28 Oct 2010 20:40:11 +0000 (UTC)
commit 9403606480ae29b6e7f7ade6c7d3b08b1a335dea
Author: Juanje Ojeda <jojeda emergya es>
Date: Thu Oct 28 22:39:59 2010 +0200
Fix profile importation issue. The keybinding dictionary was reference instead of copy
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 95e3657..dab8841 100644
--- a/src/orca/settings_manager.py
+++ b/src/orca/settings_manager.py
@@ -293,13 +293,13 @@ class SettingsManager():
def _setProfilePronunciations(self, pronunciations):
"""Set the changed pronunciations settings from the defaults' ones
as the profile's."""
- self.profilePronunciations = self.defaultPronunciations
+ self.profilePronunciations = self.defaultPronunciations.copy()
self.profilePronunciations.update(pronunciations)
def _setProfileKeybindings(self, keybindings):
"""Set the changed keybindings settings from the defaults' ones
as the profile's."""
- self.profileKeybindings = self.defaultKeybindings
+ self.profileKeybindings = self.defaultKeybindings.copy()
self.profileKeybindings.update(keybindings)
def saveSettings(self, general, pronunciations, keybindings):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]