Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Fomin <fominde@gmail.com>2010-10-20 12:31:24 +0400
committerDenis Fomin <fominde@gmail.com>2010-10-20 12:31:24 +0400
commit756a5034867fd71635797d6b26e8e0ae9eddbb03 (patch)
treea7050bf160123ac274c3244328a63cea35657e70 /clients_icons
parent9182910da16216a8c7bb8808d11a83872d80378b (diff)
clients_icons. fix a bug with self contacts
Diffstat (limited to 'clients_icons')
-rw-r--r--clients_icons/clients_icons.py7
-rw-r--r--clients_icons/manifest.ini2
2 files changed, 5 insertions, 4 deletions
diff --git a/clients_icons/clients_icons.py b/clients_icons/clients_icons.py
index 61415a6..ffab5b5 100644
--- a/clients_icons/clients_icons.py
+++ b/clients_icons/clients_icons.py
@@ -193,9 +193,10 @@ class ClientsIconsPlugin(GajimPlugin):
roster.model)[0]
if contact != iq_obj.contact:
# higest contact changed
- caps = contact.client_caps._node
- self.set_icon(roster.model, iter_, self.renderer_num, caps)
- return
+ if roster.model[iter_][self.renderer_num] is not None:
+ caps = contact.client_caps._node
+ self.set_icon(roster.model, iter_, self.renderer_num, caps)
+ return
caps = None
tag = iq_obj.stanza.getTags('c')
if tag:
diff --git a/clients_icons/manifest.ini b/clients_icons/manifest.ini
index baa0269..5b6b7e9 100644
--- a/clients_icons/manifest.ini
+++ b/clients_icons/manifest.ini
@@ -1,7 +1,7 @@
[info]
name: Clients icons
short_name: clients_icons
-version: 0.2
+version: 0.3
description: Shows the client icons in the roster
and in groupchats.
authors = Denis Fomin <fominde@gmail.com>