disco: Don't clean cache for account when browser still have a parent. Fixes #2742.
This commit is contained in:
		
							parent
							
								
									7fbb4279ac
								
							
						
					
					
						commit
						3f80800f4a
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -600,7 +600,6 @@ _('Without a connection, you can not browse available services')) | ||||||
| 			self.browser = None | 			self.browser = None | ||||||
| 		self.window.destroy() | 		self.window.destroy() | ||||||
| 
 | 
 | ||||||
| 		self.cache.cleanup() |  | ||||||
| 		for child in self.children[:]: | 		for child in self.children[:]: | ||||||
| 			child.parent = None | 			child.parent = None | ||||||
| 			if chain: | 			if chain: | ||||||
|  | @ -612,6 +611,8 @@ _('Without a connection, you can not browse available services')) | ||||||
| 			if chain and not self.parent.children: | 			if chain and not self.parent.children: | ||||||
| 				self.parent.destroy(chain = chain) | 				self.parent.destroy(chain = chain) | ||||||
| 				self.parent = None | 				self.parent = None | ||||||
|  | 		else: | ||||||
|  | 			self.cache.cleanup() | ||||||
| 
 | 
 | ||||||
| 	def travel(self, jid, node): | 	def travel(self, jid, node): | ||||||
| 		'''Travel to an agent within the current services window.''' | 		'''Travel to an agent within the current services window.''' | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue