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,6 +2779,7 @@ class Interface:
self.systray = statusicon.StatusIcon() self.systray = statusicon.StatusIcon()
pix = gtkgui_helpers.get_icon_pixmap('gajim', 32) pix = gtkgui_helpers.get_icon_pixmap('gajim', 32)
if pix is not None:
# set the icon to all windows # set the icon to all windows
gtk.window_set_default_icon(pix) gtk.window_set_default_icon(pix)