[Jim++] title is needed in preset status messages. Fixes #1768
This commit is contained in:
parent
1ef1888cbe
commit
4311f7fe0a
|
@ -775,14 +775,15 @@ class PreferencesWindow:
|
||||||
iter = model.get_iter_first()
|
iter = model.get_iter_first()
|
||||||
while iter:
|
while iter:
|
||||||
val = model[iter][0].decode('utf-8')
|
val = model[iter][0].decode('utf-8')
|
||||||
gajim.config.add_per('statusmsg', val)
|
if val:
|
||||||
if model[iter][1] is None: # here is the MESSAGE
|
gajim.config.add_per('statusmsg', val)
|
||||||
# so when we press New this func is called by
|
if model[iter][1] is None: # here is the MESSAGE
|
||||||
# on_msg_treemodel_row_changed but message is None
|
# so when we press New this func is called by
|
||||||
# (hasn't been added yet) so do not TB
|
# on_msg_treemodel_row_changed but message is None
|
||||||
return
|
# (hasn't been added yet) so do not TB
|
||||||
msg = helpers.to_one_line(model[iter][1].decode('utf-8'))
|
return
|
||||||
gajim.config.set_per('statusmsg', val, 'message', msg)
|
msg = helpers.to_one_line(model[iter][1].decode('utf-8'))
|
||||||
|
gajim.config.set_per('statusmsg', val, 'message', msg)
|
||||||
iter = model.iter_next(iter)
|
iter = model.iter_next(iter)
|
||||||
gajim.interface.save_config()
|
gajim.interface.save_config()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue