From 3c4333b66b3f89d85dfa387f938e0522f563ba28 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 25 Aug 2006 10:55:53 +0000 Subject: [PATCH] default to jabber iconset when we try to get unknown transport one. --- src/roster_window.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 67422325b..e967a4b23 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -453,8 +453,9 @@ class RosterWindow: transport: transport iconset doesn't contain all icons, so we fall back to jabber one''' transport = gajim.get_transport_name_from_jid(jid) - if transport and icon_name in \ - self.transports_state_images[size][transport]: + if transport and self.transports_state_images.has_key(size) and \ + self.transports_state_images[size].has_key(transport) and icon_name in \ + self.transports_state_images[size][transport]: return self.transports_state_images[size][transport] return self.jabber_state_images[size] @@ -2494,7 +2495,7 @@ _('If "%s" accepts this request you will know his or her status.') % jid) no_queue = True if qs.has_key(fjid): no_queue = False - + popup = helpers.allow_popup_window(account) if msg_type == 'normal' and popup: # it's single message to be autopopuped