From daa86b240eb5963766ca1da795b5191b3f66367d Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 4 Jun 2009 17:34:38 +0200 Subject: [PATCH] prevent traceback when trying to open a second search window. Fixes #5073 --- src/disco.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/disco.py b/src/disco.py index b2df26b81..90aab600b 100644 --- a/src/disco.py +++ b/src/disco.py @@ -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)