# HG changeset patch # User souliane # Date 1408897435 -7200 # Node ID 7ee18dbfb6613de7a49976bb0447d5321eace1d8 # Parent e89bd3a26c86cd4784da50e8caca2655e9635703 primitivus: improve the check to alert for new message diff -r e89bd3a26c86 -r 7ee18dbfb661 frontends/src/primitivus/primitivus --- a/frontends/src/primitivus/primitivus Sun Aug 24 18:44:18 2014 +0200 +++ b/frontends/src/primitivus/primitivus Sun Aug 24 18:23:55 2014 +0200 @@ -405,7 +405,7 @@ # presence information and which are not in roster self.contact_list.replace(from_jid, [C.GROUP_NOT_IN_ROSTER]) - if JID(self.contact_list.selected).bare != from_jid.bare: + if self.contact_list.selected is None or JID(self.contact_list.selected).bare != from_jid.bare: self.contact_list.putAlert(from_jid) def _dialogOkCb(self, widget, data):