we can now edit filtered rows in advanced config editor

This commit is contained in:
Yann Leboulanger 2005-07-23 07:26:41 +00:00
parent 5a304cbdd6
commit 421af9c794
1 changed files with 7 additions and 6 deletions

View File

@ -76,14 +76,15 @@ class AdvancedConfigurationWindow:
self.window.show_all()
self.plugin.windows['advanced_config'] = self
def on_config_edited(self, cell, row, text):
modelrow = self.model[row]
def on_config_edited(self, cell, path, text):
#convert modelfilter path to model path
modelpath = self.modelfilter.convert_path_to_child_path(path)
modelrow = self.model[modelpath]
option = modelrow[0]
if row.find(':') > 0:
row_splitted = row.split(':')
optnamerow = self.model[row_splitted[0]]
if len(modelpath) > 1:
optnamerow = self.model[modelpath[0]]
optname = optnamerow[0]
keyrow = self.model[':'.join(row_splitted[:2])]
keyrow = self.model[modelpath]
key = keyrow[0]
if gajim.config.set_per(optname, key, option, text):
return