From f6e2590eabc7988c3bc8582d53e7c768929f31a7 Mon Sep 17 00:00:00 2001 From: Travis Shirk Date: Wed, 8 Feb 2006 02:56:58 +0000 Subject: [PATCH] Fixed the previous TB, but this time at another part of the code --- src/gajim.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/gajim.py b/src/gajim.py index 47bb43178..f2caa0e0d 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -405,12 +405,15 @@ class Interface: show_notification = True if show_notification: transport_name = gajim.get_transport_name_from_jid(jid) - img = os.path.join(gajim.DATA_DIR, 'iconsets', - 'transports', transport_name, '48x48', 'online.png') - if not os.path.isfile(img): + img = None + if transport_name: + img = os.path.join(gajim.DATA_DIR, 'iconsets', + 'transports', transport_name, '48x48', + 'online.png') + if not img or not os.path.isfile(img): iconset = gajim.config.get('iconset') - img = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, - '48x48', 'online.png') + img = os.path.join(gajim.DATA_DIR, 'iconsets', + iconset, '48x48', 'online.png') path = gtkgui_helpers.get_path_to_generic_or_avatar(img, jid = jid, suffix = '_notif_size_colored.png') notify.notify(_('Contact Signed In'), jid, account,