This commit is contained in:
Nikos Kouremenos 2005-11-10 15:14:03 +00:00
parent 956217bdf6
commit e6d862e91b
1 changed files with 6 additions and 1 deletions

View File

@ -834,8 +834,13 @@ class PreferencesWindow:
gajim.config.del_per('statusmsg', msg) gajim.config.del_per('statusmsg', msg)
iter = model.get_iter_first() iter = model.get_iter_first()
while iter: while iter:
val = model.get_value(iter, 0).decode('utf-8') val = model[iter][0].decode('utf-8')
gajim.config.add_per('statusmsg', val) gajim.config.add_per('statusmsg', val)
if model[iter][1] is None: # here is the MESSAGE
# so when we press New this func is called by
# on_msg_treemodel_row_changed but message is None
# (hasn't been added yet) so do not TB
return
gajim.config.set_per('statusmsg', val, 'message', gajim.config.set_per('statusmsg', val, 'message',
model[iter][1].decode('utf-8')) model[iter][1].decode('utf-8'))
iter = model.iter_next(iter) iter = model.iter_next(iter)