From e6d862e91bd5999f47643ec7b025caddb552b6e5 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Thu, 10 Nov 2005 15:14:03 +0000 Subject: [PATCH] fix a tb --- src/config.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/config.py b/src/config.py index 04d6e1429..7098c7606 100644 --- a/src/config.py +++ b/src/config.py @@ -834,8 +834,13 @@ class PreferencesWindow: gajim.config.del_per('statusmsg', msg) iter = model.get_iter_first() while iter: - val = model.get_value(iter, 0).decode('utf-8') + val = model[iter][0].decode('utf-8') 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', model[iter][1].decode('utf-8')) iter = model.iter_next(iter)