# HG changeset patch # User Laurent Bessard # Date 1343657181 -7200 # Node ID 7991eb6bcb5a25dfa9b4f9ae22506007a284f388 # Parent 4e30c1c0922d43e9c1439107f0ee29b42897b71f Fix bug with dialogs inherited from TextEntryDialog diff -r 4e30c1c0922d -r 7991eb6bcb5a dialogs/ForceVariableDialog.py --- a/dialogs/ForceVariableDialog.py Fri Jul 27 15:44:42 2012 +0200 +++ b/dialogs/ForceVariableDialog.py Mon Jul 30 16:06:21 2012 +0200 @@ -171,6 +171,7 @@ dialog.Destroy() else: self.EndModal(wx.ID_OK) + event.Skip() def GetValue(self): return GetTypeValue[self.IEC_Type](wx.TextEntryDialog.GetValue(self)) diff -r 4e30c1c0922d -r 7991eb6bcb5a dialogs/PouNameDialog.py --- a/dialogs/PouNameDialog.py Fri Jul 27 15:44:42 2012 +0200 +++ b/dialogs/PouNameDialog.py Mon Jul 30 16:06:21 2012 +0200 @@ -55,6 +55,7 @@ dialog.Destroy() else: self.EndModal(wx.ID_OK) + event.Skip() def SetPouNames(self, pou_names): self.PouNames = [pou_name.upper() for pou_name in pou_names] diff -r 4e30c1c0922d -r 7991eb6bcb5a dialogs/SFCStepNameDialog.py --- a/dialogs/SFCStepNameDialog.py Fri Jul 27 15:44:42 2012 +0200 +++ b/dialogs/SFCStepNameDialog.py Mon Jul 30 16:06:21 2012 +0200 @@ -61,6 +61,7 @@ dialog.Destroy() else: self.EndModal(wx.ID_OK) + event.Skip() def SetPouNames(self, pou_names): self.PouNames = [pou_name.upper() for pou_name in pou_names]