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 <pep@bouah.net>
parent a66e3903
Pipeline #2547 failed with stages
in 1 minute and 31 seconds
......@@ -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)):
self.lines.append((BookmarkNameInput(bookmark),
BookmarkJIDInput(bookmark),
BookmarkPasswordInput(bookmark),
......
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