Dont set Avatar if there is none

Fixes #8878
This commit is contained in:
Philipp Hörist 2018-01-30 23:40:15 +01:00
parent 6deedb1743
commit 258c7922a5
1 changed files with 3 additions and 2 deletions

View File

@ -4843,8 +4843,9 @@ class RosterWindow:
return
image = model[titer][Column.AVATAR_IMG]
surface = image.get_property('surface')
renderer.set_property('surface', surface)
if image is not None:
surface = image.get_property('surface')
renderer.set_property('surface', surface)
# allocate space for the icon only if needed
if model[titer][Column.AVATAR_IMG] or \
app.config.get('avatar_position_in_roster') == 'left':