Fix displaying links in textview

Regression from 79716f421f
This commit is contained in:
Philipp Hörist 2017-07-04 12:26:05 +02:00
parent 3d8be9ebe2
commit ab85729fe5

View file

@ -953,9 +953,9 @@ class ConversationTextview(GObject.GObject):
end_iter = iter_ end_iter = iter_
else: else:
end_iter = buffer_.get_end_iter() end_iter = buffer_.get_end_iter()
if gajim.config.get('emoticons_theme') and graphics:
pixbuf = emoticons.get_pixbuf(possible_emot_ascii_caps) pixbuf = emoticons.get_pixbuf(possible_emot_ascii_caps)
if pixbuf: if gajim.config.get('emoticons_theme') and pixbuf and graphics:
# it's an emoticon # it's an emoticon
anchor = buffer_.create_child_anchor(end_iter) anchor = buffer_.create_child_anchor(end_iter)
img = TextViewImage(anchor, img = TextViewImage(anchor,