From ee9cde3b7d7579f785daf2cdd41bf7c1a0638c1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 28 Sep 2013 14:57:53 +0200 Subject: [PATCH] Block button handler instead of deactivate button By deactivating the button, the button lost the focus which makes NoModal selects the wrong sensitive widget and thus the wizard behaves like if it was launched from the menu instead of from a tab. issue3353 review1083003 --- tryton/gui/window/view_form/view/form.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tryton/gui/window/view_form/view/form.py b/tryton/gui/window/view_form/view/form.py index 974c8713b9..6ec6275914 100644 --- a/tryton/gui/window/view_form/view/form.py +++ b/tryton/gui/window/view_form/view/form.py @@ -178,8 +178,8 @@ class ViewForm(ParserView): self.screen.display(set_cursor=True) return else: - widget.set_sensitive(False) + widget.handler_block_by_func(self.button_clicked) try: self.screen.button(widget.attrs) finally: - widget.set_sensitive(True) + widget.handler_unblock_by_func(self.button_clicked)