Check if the icon exists
This commit is contained in:
parent
f5173c33d0
commit
7ecf98ba95
@ -278,8 +278,8 @@ class Chat(activity.Activity):
|
|||||||
|
|
||||||
def _insert_buddy(self, buf, nick):
|
def _insert_buddy(self, buf, nick):
|
||||||
buddy = self._group.get_buddy(nick)
|
buddy = self._group.get_buddy(nick)
|
||||||
print buddy.get_nick_name()
|
|
||||||
|
|
||||||
|
if buddy.get_icon():
|
||||||
pbl = gtk.gdk.PixbufLoader()
|
pbl = gtk.gdk.PixbufLoader()
|
||||||
pbl.write(buddy.get_icon())
|
pbl.write(buddy.get_icon())
|
||||||
pbl.close()
|
pbl.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user