Verified Commit 1e45e265 authored by Maxime Buquet's avatar Maxime Buquet

windows/bookmark_forms: Convert JID objects to str so that comparison succeeds

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <>
parent a66e3903
......@@ -162,7 +162,7 @@ class BookmarksWin(Win):
self.current_horizontal_input = 0
self._bookmarks = list(bookmarks)
self.lines = [] # type: List[Tuple[BookmarkNameInput, BookmarkJIDInput, BookmarkPasswordInput, BookmarkAutojoinWin, BookmarkMethodInput]]
for bookmark in sorted(self._bookmarks, key=lambda x: x.jid):
for bookmark in sorted(self._bookmarks, key=lambda x: str(x.jid)):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment