don't show image in vcard if we don't show first tab. fixes #2669

This commit is contained in:
Yann Leboulanger 2006-11-15 19:29:53 +00:00
parent 40d298c231
commit 9c1fdad5ec
1 changed files with 2 additions and 1 deletions

View File

@ -154,7 +154,8 @@ class VcardWindow:
def set_values(self, vcard):
for i in vcard.keys():
if i == 'PHOTO':
if i == 'PHOTO' and self.xml.get_widget('information_notebook').\
get_n_pages() > 4:
pixbuf, self.avatar_encoded, self.avatar_mime_type = \
get_avatar_pixbuf_encoded_mime(vcard[i])
image = self.xml.get_widget('PHOTO_image')