changeset 1124:7ee18dbfb661

primitivus: improve the check to alert for new message
author souliane <souliane@mailoo.org>
date Sun, 24 Aug 2014 18:23:55 +0200
parents e89bd3a26c86
children d6c3fea5ecfe
files frontends/src/primitivus/primitivus
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):