prevent traceback If the gajim icon is absent

This commit is contained in:
Denis Fomin 2011-02-21 23:52:16 +03:00
parent 44afd960d0
commit 4a02b2d381
1 changed files with 3 additions and 2 deletions

View File

@ -2779,8 +2779,9 @@ class Interface:
self.systray = statusicon.StatusIcon()
pix = gtkgui_helpers.get_icon_pixmap('gajim', 32)
# set the icon to all windows
gtk.window_set_default_icon(pix)
if pix is not None:
# set the icon to all windows
gtk.window_set_default_icon(pix)
self.init_emoticons()
self.make_regexps()