diff options
author | Denis Fomin <fominde@gmail.com> | 2010-09-30 11:45:51 +0400 |
---|---|---|
committer | Denis Fomin <fominde@gmail.com> | 2010-09-30 11:45:51 +0400 |
commit | ae3ccfe36ef634189f7d1e1946422f0dbb2e99c7 (patch) | |
tree | 6763d3e0b97659a429c66eba4e5e90a677a30d91 /set_location | |
parent | c5233b300ffa344373926d50d66d6e5d1e6fdf78 (diff) |
set_location. quick fix
Diffstat (limited to 'set_location')
-rw-r--r-- | set_location/set_location.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/set_location/set_location.py b/set_location/set_location.py index f8cc974..ec530be 100644 --- a/set_location/set_location.py +++ b/set_location/set_location.py @@ -90,12 +90,13 @@ class SetLocationPluginConfigDialog(GajimPluginConfigDialog): self.preset_combo.pack_start(cellrenderer, True) self.preset_combo.add_attribute(cellrenderer, 'text', 0) #self.plugin.config['presets'] = {'default': {}} - pres_keys = sorted(self.plugin.config['presets'].keys()) - for key in pres_keys: - self.preset_liststore.append((key,)) def on_run(self): no_map = None + if not self.is_active: + pres_keys = sorted(self.plugin.config['presets'].keys()) + for key in pres_keys: + self.preset_liststore.append((key,)) for name in self.plugin.config_default_values: if name == 'presets': |