From 5a9320c85c9ac2aab341d649220168194f42dc86 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 17 Jul 2006 11:31:42 +0000 Subject: [PATCH] Fixed TB qith ICQ transport. Fixes #2159 --- src/gajim.py | 2 +- src/vcard.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gajim.py b/src/gajim.py index 7fcbce3c4..da2944c3f 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -802,7 +802,7 @@ class Interface: c = gajim.contacts.get_contact(account, array[0], array[1]) # c is a list when no resource is given. it probably means that contact # is offline, so only on Contact instance - if isinstance(c, list): + if isinstance(c, list) and len(c): c = c[0] if c: # c can be none if it's a gc contact c.last_status_time = time.localtime(time.time() - array[2]) diff --git a/src/vcard.py b/src/vcard.py index 331717408..ee5070e66 100644 --- a/src/vcard.py +++ b/src/vcard.py @@ -270,6 +270,8 @@ class VcardWindow: self.fill_status_label() def set_os_info(self, resource, client_info, os_info): + if self.xml.get_widget('information_notebook').get_n_pages() < 5: + return i = 0 client = '' os = '' @@ -293,6 +295,8 @@ class VcardWindow: self.xml.get_widget('os_label').set_text(os) def fill_status_label(self): + if self.xml.get_widget('information_notebook').get_n_pages() < 5: + return contact_list = gajim.contacts.get_contact(self.account, self.contact.jid) # stats holds show and status message stats = ''