From c62c5b2da7781f883f53f409f56dc7d5354c46a8 Mon Sep 17 00:00:00 2001 From: Eijebong Date: Mon, 6 Jul 2015 17:06:45 +0200 Subject: Fix a traceback in the bookmarks tab when we do not set a nickname explicitly. --- src/windows/bookmark_forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/windows/bookmark_forms.py b/src/windows/bookmark_forms.py index 7cbd30cc..de1043c9 100644 --- a/src/windows/bookmark_forms.py +++ b/src/windows/bookmark_forms.py @@ -14,7 +14,7 @@ class BookmarkJIDInput(FieldInput, Input): FieldInput.__init__(self, field) Input.__init__(self) jid = safeJID(field.jid) - jid.resource = field.nick + jid.resource = field.nick or None self.text = jid.full self.pos = len(self.text) self.color = get_theme().COLOR_NORMAL_TEXT -- cgit v1.2.3