Remove some extra model refiltering.
Whenever we write to the underlying child_model gtk will call the _visible_func on itself.
This commit is contained in:
		
							parent
							
								
									f92f5f5c64
								
							
						
					
					
						commit
						abe75901d4
					
				
					 2 changed files with 0 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -910,7 +910,6 @@ class Interface:
 | 
			
		|||
			# It must be an agent
 | 
			
		||||
			if ji in jid_list:
 | 
			
		||||
				# Update existing iter
 | 
			
		||||
				self.roster.modelfilter.refilter()
 | 
			
		||||
				self.roster.draw_contact(ji, account)
 | 
			
		||||
				self.roster.draw_group(_('Transports'), account)
 | 
			
		||||
				if new_show > 1 and ji in gajim.transport_avatar[account]:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -829,8 +829,6 @@ class RosterWindow:
 | 
			
		|||
		if jid in gajim.newly_added[account]:
 | 
			
		||||
			gajim.newly_added[account].remove(jid)
 | 
			
		||||
			self.draw_contact(jid, account)
 | 
			
		||||
			# redraw group visibility
 | 
			
		||||
			self.refilter_shown_roster_items()
 | 
			
		||||
 | 
			
		||||
	# FIXME: maybe move to gajim.py
 | 
			
		||||
	def remove_to_be_removed(self, jid, account):
 | 
			
		||||
| 
						 | 
				
			
			@ -842,7 +840,6 @@ class RosterWindow:
 | 
			
		|||
		if jid in gajim.to_be_removed[account]:
 | 
			
		||||
			gajim.to_be_removed[account].remove(jid)
 | 
			
		||||
			self.draw_contact(jid, account)
 | 
			
		||||
		self.refilter_shown_roster_items()
 | 
			
		||||
	
 | 
			
		||||
	#FIXME: integrate into add_contact()
 | 
			
		||||
	def add_to_not_in_the_roster(self, account, jid, nick = '', resource = ''):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue