From 63fce326365d5c876d03ef93c60670ba784b767b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 6 Feb 2014 23:02:10 +0100 Subject: [PATCH] Remove process call on wizard sensitive state change This hack was added by changeset cd8bf16ecab4 to manage wizard launching other wizards but changeset 8bcd8092c2d9 makes this hack useless. issue3638 review3201003 --- tryton/gui/window/wizard.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tryton/gui/window/wizard.py b/tryton/gui/window/wizard.py index 3e37106691..df35058b12 100644 --- a/tryton/gui/window/wizard.py +++ b/tryton/gui/window/wizard.py @@ -298,7 +298,6 @@ class WizardDialog(Wizard, NoModal): self.dia.set_deletable(False) self.dia.connect('close', self.close) self.dia.connect('response', self.response) - self.dia.connect('state-changed', self.state_changed) self.accel_group = gtk.AccelGroup() self.dia.add_accel_group(self.accel_group) @@ -370,7 +369,3 @@ class WizardDialog(Wizard, NoModal): def hide(self): self.dia.hide() - - def state_changed(self, widget, state): - if self.dia.props.sensitive and state == gtk.STATE_INSENSITIVE: - self.process()