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)