From 5fc2e616f4f953240386a99ab7967d200fe2104f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 29 Mar 2012 17:57:00 +0200 Subject: [PATCH] Destroy search window before creating the new form window Because of the flag DIALOG_DESTROY_WITH_PARENT, the search window can not be destroyed by the callback of the form window because the form window is also destroyed too early. issue2522 --- tryton/gui/window/win_search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/window/win_search.py b/tryton/gui/window/win_search.py index b9736e3327..ab7f53ca2c 100644 --- a/tryton/gui/window/win_search.py +++ b/tryton/gui/window/win_search.py @@ -118,7 +118,7 @@ class WinSearch(NoModal): record = screen.current_record res = [(record.id, record.value.get('rec_name', ''))] self.callback(res) - self.destroy() + self.destroy() WinForm(screen, callback, new=True) return if res: