set_location. quick fix

This commit is contained in:
Denis Fomin
2010-09-30 11:45:51 +04:00
parent c5233b300f
commit ae3ccfe36e

View File

@@ -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':