From 6e562fb5ff3613c4f4e11ad1b072c408e0fa1ecb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 28 Jan 2011 10:52:53 +0100 Subject: [PATCH] Destroy the dialog after reading value of the widget for issue1837 And call present on the parent window (transplanted from 9ccf31fb4b4350d418a55ba08f1811610da9aa4d) --- tryton/gui/window/form.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tryton/gui/window/form.py b/tryton/gui/window/form.py index 7c9c60db41..1b33fdfeaa 100644 --- a/tryton/gui/window/form.py +++ b/tryton/gui/window/form.py @@ -196,9 +196,10 @@ class Form(SignalEvent): win.show_all() response = win.run() - win.destroy() if response == gtk.RESPONSE_OK: self.screen.display(locale.atoi(entry.get_text()), set_cursor=True) + win.destroy() + self.window.present() def destroy(self): self.screen.signal_unconnect(self)