Reviewers: ,


Please review this at http://codereview.tryton.org/262002/

Affected files:
  M tryton/gui/window/wizard.py


Index: tryton/gui/window/wizard.py
===================================================================
--- a/tryton/gui/window/wizard.py
+++ b/tryton/gui/window/wizard.py
@@ -348,9 +348,13 @@
             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()


--
[email protected] mailing list

Reply via email to