enable declared variables without name
authorgreg
Fri, 22 May 2009 14:44:03 +0200
changeset 359 363af30a8b83
parent 358 4eeb0129f5d2
child 360 072f9f830659
enable declared variables without name
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()