diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2019-10-13 13:54:05 +0200 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2019-10-13 13:54:05 +0200 |
commit | 1e45e265a1705a0a4d6f99b8290fdd2f855e52be (patch) | |
tree | dd5423ddf52a4577a16cc3500ce97322984444a0 | |
parent | a66e3903df7d7be35f147fbd91b018dc63411484 (diff) | |
download | poezio-1e45e265a1705a0a4d6f99b8290fdd2f855e52be.tar.gz poezio-1e45e265a1705a0a4d6f99b8290fdd2f855e52be.tar.bz2 poezio-1e45e265a1705a0a4d6f99b8290fdd2f855e52be.tar.xz poezio-1e45e265a1705a0a4d6f99b8290fdd2f855e52be.zip |
windows/bookmark_forms: Convert JID objects to str so that comparison succeeds
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r-- | poezio/windows/bookmark_forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/windows/bookmark_forms.py b/poezio/windows/bookmark_forms.py index 8b9150d6..1e5cdfc6 100644 --- a/poezio/windows/bookmark_forms.py +++ b/poezio/windows/bookmark_forms.py @@ -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), |