changeset 359 | 363af30a8b83 |
parent 357 | e5501b3337db |
child 361 | 62570186dad4 |
--- a/PLCOpenEditor.py Fri May 22 13:51:51 2009 +0200 +++ b/PLCOpenEditor.py Fri May 22 14:44:03 2009 +0200 @@ -4364,7 +4364,7 @@ row, col = event.GetRow(), event.GetCol() colname = self.Table.GetColLabelValue(col) value = self.Table.GetValue(row, col) - if colname == "Name": + if colname == "Name" and value != "": if not TestIdentifier(value): message = wx.MessageDialog(self, "\"%s\" is not a valid identifier!"%value, "Error", wx.OK|wx.ICON_ERROR) message.ShowModal()