# HG changeset patch # User greg # Date 1242996243 -7200 # Node ID 363af30a8b8357c72ee8f2547e91e4cec0ec1d1c # Parent 4eeb0129f5d22c9946b631bb09fd978aa246b27c enable declared variables without name diff -r 4eeb0129f5d2 -r 363af30a8b83 PLCOpenEditor.py --- 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()