prevent traceback when trying to open a second search window. Fixes #5073
This commit is contained in:
parent
b18d79b0a0
commit
daa86b240e
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue