Commit f79cde48 authored by Yann Leboulanger's avatar Yann Leboulanger

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

parent e0a0669e
......@@ -1242,7 +1242,8 @@ def on_search_button_clicked(self, widget = None):
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment