gc contacts have no resource attribute
This commit is contained in:
		
							parent
							
								
									8614b3cad0
								
							
						
					
					
						commit
						07888f9a49
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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…
	
	Add table
		
		Reference in a new issue