prevent traceback when trying to open a second search window. Fixes #5073

This commit is contained in:
Yann Leboulanger 2009-06-04 17:34:38 +02:00
parent b18d79b0a0
commit daa86b240e
1 changed files with 2 additions and 1 deletions

View File

@ -1241,7 +1241,8 @@ class ToplevelAgentBrowser(AgentBrowser):
return return
service = model[iter_][0].decode('utf-8') service = model[iter_][0].decode('utf-8')
if service in gajim.interface.instances[self.account]['search']: if service in gajim.interface.instances[self.account]['search']:
gajim.interface.instances[self.account]['search'][service].present() gajim.interface.instances[self.account]['search'][service].window.\
present()
else: else:
gajim.interface.instances[self.account]['search'][service] = \ gajim.interface.instances[self.account]['search'][service] = \
search_window.SearchWindow(self.account, service) search_window.SearchWindow(self.account, service)