gc contacts have no resource attribute
This commit is contained in:
parent
8614b3cad0
commit
07888f9a49
|
@ -342,7 +342,7 @@ class GCTooltip(BaseTooltip):
|
|||
# escape markup entities
|
||||
info += ' - ' + gtkgui_helpers.escape_for_pango_markup(status)
|
||||
|
||||
if contact.resource.strip() != '':
|
||||
if hasattr(contact, 'resource') and contact.resource.strip() != '':
|
||||
info += '\n<span weight="bold">' + _('Resource: ') + \
|
||||
'</span>' + gtkgui_helpers.escape_for_pango_markup(
|
||||
contact.resource)
|
||||
|
|
Loading…
Reference in New Issue