From 51ecd0aba1b24c4e13b8164ef218b8ac23d51ae4 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Sat, 10 Nov 2012 23:07:35 +0400 Subject: [PATCH] clients_icons. Do not display the icon for the clients who have 'remote-server-not-found' status. Fixes #42 --- clients_icons/clients_icons.py | 5 +++++ clients_icons/manifest.ini | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/clients_icons/clients_icons.py b/clients_icons/clients_icons.py index 918d92b..e39e2cb 100644 --- a/clients_icons/clients_icons.py +++ b/clients_icons/clients_icons.py @@ -345,6 +345,11 @@ class ClientsIconsPlugin(GajimPlugin): iter_ = roster._get_contact_iter(iq_obj.jid, iq_obj.conn.name, contact, roster.model)[0] + + if contact.show == 'error': + self.set_icon(roster.model, iter_, self.renderer_num, None) + return + if contact != iq_obj.contact: # higest contact changed if roster.model[iter_][self.renderer_num] is not None: diff --git a/clients_icons/manifest.ini b/clients_icons/manifest.ini index cc935d6..0a19257 100644 --- a/clients_icons/manifest.ini +++ b/clients_icons/manifest.ini @@ -1,7 +1,7 @@ [info] name: Clients icons short_name: clients_icons -version: 2 +version: 2.1 description: Shows the client icons in the roster and in groupchats. authors = Denis Fomin