From ed14ec10eb2597008f95c2e35eea39fd6d9091dd Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Tue, 28 Mar 2006 12:57:35 +0000 Subject: [PATCH] [jim++] use message text if user does not give message title. message == preset message [in prefs window] --- src/config.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/config.py b/src/config.py index ccc4fe284..eec213235 100644 --- a/src/config.py +++ b/src/config.py @@ -775,13 +775,10 @@ class PreferencesWindow: iter = model.get_iter_first() while iter: val = model[iter][0].decode('utf-8') - if val: + if model[iter][1]: # we have a preset message + if not val: # no title, use message text for title + val = model[iter][1] 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 msg = helpers.to_one_line(model[iter][1].decode('utf-8')) gajim.config.set_per('statusmsg', val, 'message', msg) iter = model.iter_next(iter)