draw opened/closed icon only when there is a connected child
This commit is contained in:
		
							parent
							
								
									d25430313d
								
							
						
					
					
						commit
						4ce9c8997a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -370,7 +370,7 @@ class RosterWindow:
 | 
				
			||||||
		for iter in iters:
 | 
							for iter in iters:
 | 
				
			||||||
			icon_name = helpers.get_icon_name_to_show(contact, account)
 | 
								icon_name = helpers.get_icon_name_to_show(contact, account)
 | 
				
			||||||
			path = model.get_path(iter)
 | 
								path = model.get_path(iter)
 | 
				
			||||||
			if gajim.contacts.has_children(account, contact):
 | 
								if model.iter_has_child(iter):
 | 
				
			||||||
				if icon_name in ('error', 'offline') and not \
 | 
									if icon_name in ('error', 'offline') and not \
 | 
				
			||||||
					self.tree.row_expanded(path):
 | 
										self.tree.row_expanded(path):
 | 
				
			||||||
					# get children icon
 | 
										# get children icon
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue