prevent a traceback with wrong bookmarks. Fixes #9055

This commit is contained in:
Yann Leboulanger 2018-04-07 22:01:39 +02:00
parent cf911b3984
commit 93b50bf1f6
1 changed files with 6 additions and 1 deletions

View File

@ -2119,7 +2119,12 @@ class ManageBookmarksWindow:
# Fill in the data for childs
self.title_entry.set_text(model[iter_][1])
room_jid = model[iter_][2]
(room, server) = room_jid.split('@')
room_jid_s = room_jid.split('@')
if len(room_jid_s) == 1:
room = ''
server = room_jid
else:
(room, server) = room_jid_s
self.room_entry.handler_block(self.room_entry_changed_id)
self.room_entry.set_text(room)
self.room_entry.handler_unblock(self.room_entry_changed_id)