Bug with drop located variable in empty grid fixed
authorlbessard
Tue, 17 Mar 2009 16:00:04 +0100
changeset 322 bf5a968bb7e0
parent 321 5b37e16f7b2a
child 323 fd3a3a002bce
Bug with drop located variable in empty grid fixed
PLCOpenEditor.py
--- a/PLCOpenEditor.py	Tue Mar 17 15:58:50 2009 +0100
+++ b/PLCOpenEditor.py	Tue Mar 17 16:00:04 2009 +0100
@@ -3891,8 +3891,8 @@
                                 self.ParentWindow.Table.ResetView(self.ParentWindow.VariablesGrid)
                                 self.ParentWindow.SaveValues()
                             dialog.Destroy()
-        if message is not None:
-            wx.CallAfter(self.ShowMessage, message)
+            if message is not None:
+                wx.CallAfter(self.ShowMessage, message)
             
     def ShowMessage(self, message):
         message = wx.MessageDialog(self.ParentWindow, message, "Error", wx.OK|wx.ICON_ERROR)