Philipp Hörist pushed to branch master at gajim / gajim

Commits:
258c7922 by Philipp Hörist at 2018-01-30T23:40:15+01:00
Dont set Avatar if there is none

Fixes #8878

- - - - -


1 changed file:

- gajim/roster_window.py


Changes:

=====================================
gajim/roster_window.py
=====================================
--- a/gajim/roster_window.py
+++ b/gajim/roster_window.py
@@ -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':



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/258c7922a585b171abecbe77b12173b2f7c4d9a4

---
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/258c7922a585b171abecbe77b12173b2f7c4d9a4
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to