From 1b0c687b59bbc4d34d7af878863eb88d2b8d3d78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 5 Mar 2012 10:32:29 +0100 Subject: [PATCH] Reload the screen directly under when destroying wizard issue2279 review262002 --- tryton/gui/window/wizard.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tryton/gui/window/wizard.py b/tryton/gui/window/wizard.py index 46c1877789..d7630525bb 100644 --- a/tryton/gui/window/wizard.py +++ b/tryton/gui/window/wizard.py @@ -348,9 +348,13 @@ class WizardDialog(Wizard, NoModal): if current_form: for dialog in current_form.dialogs: dialog.show() - if hasattr(self.page, 'screen'): - self.page.screen.reload(written=True) super(WizardDialog, self).destroy() + if self.page.dialogs: + dialog = self.page.dialogs[-1] + else: + dialog = self.page + if hasattr(dialog, 'screen'): + dialog.screen.reload(written=True) def end(self): super(WizardDialog, self).end()