changeset a5a62ce905af in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=a5a62ce905af description: fix setting option in ACE
diffstat:
src/advanced_configuration_window.py | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-)
diffs (23 lines):
diff -r 3a5a87ebcc0b -r a5a62ce905af src/advanced_configuration_window.py --- a/src/advanced_configuration_window.py Thu Jan 03 19:01:18 2013 +0100 +++ b/src/advanced_configuration_window.py Thu Jan 03 19:42:44 2013 +0100 @@ -232,13 +232,14 @@ path=Gtk.TreePath.new_from_string(path) modelpath = self.modelfilter.convert_path_to_child_path(path) modelrow = self.model[modelpath] - modelpath = modelpath.get_indices() option = modelrow[0] - if len(modelpath) > 1: - optnamerow = self.model[modelpath[0]] + if modelpath.get_depth() > 2: + modelpath.up() # Get parent + keyrow = self.model[modelpath] + key = keyrow[0] + modelpath.up() # Get parent + optnamerow = self.model[modelpath] optname = optnamerow[0] - keyrow = self.model[modelpath[:2]] - key = keyrow[0] self.remember_option(option + '\n' + key + '\n' + optname, modelrow[1], text) gajim.config.set_per(optname, key, option, text)