summaryrefslogtreecommitdiff
path: root/src/windows
diff options
context:
space:
mode:
authorEijebong <eijebong@bananium.fr>2015-07-06 17:06:45 +0200
committerEijebong <eijebong@bananium.fr>2015-07-06 17:06:45 +0200
commitc62c5b2da7781f883f53f409f56dc7d5354c46a8 (patch)
tree517083c21f9974a76af5290e4327e4ccf6d213f4 /src/windows
parentbe9f447099cbe8d0d3aef268c9aa3fe1e871921b (diff)
downloadpoezio-c62c5b2da7781f883f53f409f56dc7d5354c46a8.tar.gz
poezio-c62c5b2da7781f883f53f409f56dc7d5354c46a8.tar.bz2
poezio-c62c5b2da7781f883f53f409f56dc7d5354c46a8.tar.xz
poezio-c62c5b2da7781f883f53f409f56dc7d5354c46a8.zip
Fix a traceback in the bookmarks tab when we do not set a nickname
explicitly.
Diffstat (limited to 'src/windows')
-rw-r--r--src/windows/bookmark_forms.py2
1 files changed, 1 insertions, 1 deletions
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