changeset 61963a47b20b in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=61963a47b20b description: fix dubble click on a boolean value in ACE
diffstat:
src/advanced_configuration_window.py | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r 089a02130c1a -r 61963a47b20b src/advanced_configuration_window.py --- a/src/advanced_configuration_window.py Tue Jan 01 17:56:24 2013 +0400 +++ b/src/advanced_configuration_window.py Tue Jan 01 18:34:30 2013 +0400 @@ -141,7 +141,8 @@ """ optname = model[iter_][C_PREFNAME] opttype = model[iter_][C_TYPE] - if opttype == self.types['boolean'] or optname == 'password': + + if opttype.decode('utf-8') == self.types['boolean'] or optname == 'password': cell.set_property('editable', False) else: cell.set_property('editable', True) @@ -194,9 +195,9 @@ modelpath = self.modelfilter.convert_path_to_child_path(path) modelrow = self.model[modelpath] option = modelrow[0].decode('utf-8') - if modelrow[2] == self.types['boolean']: + if modelrow[2].decode('utf-8') == self.types['boolean']: for key in self.right_true_dict.keys(): - if self.right_true_dict[key] == modelrow[1]: + if self.right_true_dict[key] == modelrow[1].decode('utf-8'): modelrow[1] = str(key) newval = {'False': True, 'True': False}[modelrow[1]] if len(modelpath.get_indices()) > 1: