Fix a traceback in the bookmarks tab when we do not set a nickname
explicitly.
This commit is contained in:
parent
be9f447099
commit
c62c5b2da7
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class BookmarkJIDInput(FieldInput, Input):
|
||||||
FieldInput.__init__(self, field)
|
FieldInput.__init__(self, field)
|
||||||
Input.__init__(self)
|
Input.__init__(self)
|
||||||
jid = safeJID(field.jid)
|
jid = safeJID(field.jid)
|
||||||
jid.resource = field.nick
|
jid.resource = field.nick or None
|
||||||
self.text = jid.full
|
self.text = jid.full
|
||||||
self.pos = len(self.text)
|
self.pos = len(self.text)
|
||||||
self.color = get_theme().COLOR_NORMAL_TEXT
|
self.color = get_theme().COLOR_NORMAL_TEXT
|
||||||
|
|
Loading…
Reference in a new issue