From fb681229802beabd05808d07574559d409e656cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 21 Mar 2014 23:44:59 +0100 Subject: [PATCH] End wizard without closing the dialog issue3771 review4391002 --- tryton/gui/window/wizard.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tryton/gui/window/wizard.py b/tryton/gui/window/wizard.py index 72f518c958..e85ee19a29 100644 --- a/tryton/gui/window/wizard.py +++ b/tryton/gui/window/wizard.py @@ -361,11 +361,9 @@ class WizardDialog(Wizard, NoModal): super(WizardDialog, self).end(callback=end_callback) def close(self, widget, event=None): + widget.emit_stop_by_name('close') if self.end_state in self.states: - self.state = self.end_state - self.process() - else: - widget.emit_stop_by_name('close') + self.states[self.end_state].clicked() return True def show(self):