Mercurial > libervia-backend
changeset 1988:3f0d22565684
primitivus (chat): fixed a crash when page-up was pressed on room contacts list
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 01 Jul 2016 00:00:12 +0200 |
parents | ab439ffe4113 |
children | 757c512fe06c |
files | frontends/src/primitivus/chat.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/frontends/src/primitivus/chat.py Fri Jul 01 00:00:11 2016 +0200 +++ b/frontends/src/primitivus/chat.py Fri Jul 01 00:00:12 2016 +0200 @@ -157,6 +157,8 @@ super(OccupantWidget, self).__init__(urwid.Text(markup)) def __eq__(self, other): + if other is None: + return False return self.occupant_data.nick == other.occupant_data.nick def __lt__(self, other):