prevent TB

This commit is contained in:
Yann Leboulanger 2006-03-10 21:58:23 +00:00
parent 59283050e1
commit 903393d172
1 changed files with 2 additions and 0 deletions

View File

@ -264,6 +264,8 @@ class VcardWindow:
if i == 'PHOTO':
pixbuf, self.avatar_encoded, self.avatar_mime_type = \
get_avatar_pixbuf_encoded_mime(vcard[i])
if not pixbuf:
continue
image = self.xml.get_widget('PHOTO_image')
pixbuf = gtkgui_helpers.get_scaled_pixbuf(pixbuf, 'vcard')
image.set_from_pixbuf(pixbuf)