# HG changeset patch # User souliane # Date 1412675134 -7200 # Node ID 93a5e2673929ff85f2bfef6341a2098b9cd42249 # Parent 3abc6563a0d21760d468f548de663ce09b04977c primitivus: fixes displaying online contacts when "Show offline contacts" is False diff -r 3abc6563a0d2 -r 93a5e2673929 frontends/src/primitivus/contact_list.py --- a/frontends/src/primitivus/contact_list.py Mon Oct 06 13:54:41 2014 +0200 +++ b/frontends/src/primitivus/contact_list.py Tue Oct 07 11:45:34 2014 +0200 @@ -232,7 +232,9 @@ @param contact (str): JID userhost of the contact @return: True if that contact should be showed in the list""" - return self.getCache(JID(contact), 'show') != "unavailable" or self.show_disconnected or contact in self.alert_jid or contact == self.selected + show = self.getCache(JID(contact), 'show') + return (show is not None and show != "unavailable") or \ + self.show_disconnected or contact in self.alert_jid or contact == self.selected def nonEmptyGroup(self, contacts): """Tell if a contact group contains some contacts to show.