disco: Don't clean cache for account when browser still have a parent. Fixes #2742.

This commit is contained in:
Jean-Marie Traissard 2006-12-10 23:01:37 +00:00
parent 7fbb4279ac
commit 3f80800f4a
1 changed files with 2 additions and 1 deletions

View File

@ -600,7 +600,6 @@ _('Without a connection, you can not browse available services'))
self.browser = None
self.window.destroy()
self.cache.cleanup()
for child in self.children[:]:
child.parent = None
if chain:
@ -612,6 +611,8 @@ _('Without a connection, you can not browse available services'))
if chain and not self.parent.children:
self.parent.destroy(chain = chain)
self.parent = None
else:
self.cache.cleanup()
def travel(self, jid, node):
'''Travel to an agent within the current services window.'''