Skip to content
Snippets Groups Projects
Commit daa86b24 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

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

parent b18d79b0
No related branches found
No related tags found
No related merge requests found
......@@ -1241,7 +1241,8 @@ class ToplevelAgentBrowser(AgentBrowser):
return
service = model[iter_][0].decode('utf-8')
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:
gajim.interface.instances[self.account]['search'][service] = \
search_window.SearchWindow(self.account, service)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment