Fixed the previous TB, but this time at another part of the code
This commit is contained in:
parent
3f7217aefe
commit
f6e2590eab
11
src/gajim.py
11
src/gajim.py
|
@ -405,12 +405,15 @@ class Interface:
|
||||||
show_notification = True
|
show_notification = True
|
||||||
if show_notification:
|
if show_notification:
|
||||||
transport_name = gajim.get_transport_name_from_jid(jid)
|
transport_name = gajim.get_transport_name_from_jid(jid)
|
||||||
|
img = None
|
||||||
|
if transport_name:
|
||||||
img = os.path.join(gajim.DATA_DIR, 'iconsets',
|
img = os.path.join(gajim.DATA_DIR, 'iconsets',
|
||||||
'transports', transport_name, '48x48', 'online.png')
|
'transports', transport_name, '48x48',
|
||||||
if not os.path.isfile(img):
|
'online.png')
|
||||||
|
if not img or not os.path.isfile(img):
|
||||||
iconset = gajim.config.get('iconset')
|
iconset = gajim.config.get('iconset')
|
||||||
img = os.path.join(gajim.DATA_DIR, 'iconsets', iconset,
|
img = os.path.join(gajim.DATA_DIR, 'iconsets',
|
||||||
'48x48', 'online.png')
|
iconset, '48x48', 'online.png')
|
||||||
path = gtkgui_helpers.get_path_to_generic_or_avatar(img,
|
path = gtkgui_helpers.get_path_to_generic_or_avatar(img,
|
||||||
jid = jid, suffix = '_notif_size_colored.png')
|
jid = jid, suffix = '_notif_size_colored.png')
|
||||||
notify.notify(_('Contact Signed In'), jid, account,
|
notify.notify(_('Contact Signed In'), jid, account,
|
||||||
|
|
Loading…
Reference in New Issue