Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-09-18 15:00:39 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-09-18 15:00:39 (GMT)
commit522116f3cb21a9fbbea273c1d4c06adb60dfedaa (patch)
treef640af076b9a403dd5029609bc0b7d28ae2f64ba /extensions
parentaac27244f0afa012bdac7d5a89e72b59dbb84a76 (diff)
_Typo Sugar craches during undo for the first Keyboard component startup #1341
Diffstat (limited to 'extensions')
-rw-r--r--extensions/cpsection/keyboard/model.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/extensions/cpsection/keyboard/model.py b/extensions/cpsection/keyboard/model.py
index 11edb9b..b0c48c9 100644
--- a/extensions/cpsection/keyboard/model.py
+++ b/extensions/cpsection/keyboard/model.py
@@ -140,9 +140,10 @@ class KeyboardManager(object):
def set_option_group(self, option_group):
"""Sets the supplied option for switching keyboard group"""
#XXX: Merge, not overwrite previous options
- if option_group is None:
- option_group = ''
- options = [option_group]
+ if option_group is None or not option_group:
+ options = ['']
+ else:
+ options = [option_group]
self._gconf_client.set_list(_OPTIONS_KEY, gconf.VALUE_STRING, options)
self._configrec.set_options(options)
self._configrec.activate(self._engine)