Fixed bug when changing IEC_Channel of node without params
authorLaurent Bessard
Fri, 10 May 2013 10:24:59 +0200
changeset 1111 ee1a8c961f11
parent 1110 b6e252733c64
child 1112 ff3fcad17b47
Fixed bug when changing IEC_Channel of node without params
editors/ConfTreeNodeEditor.py
--- a/editors/ConfTreeNodeEditor.py	Fri May 10 09:43:40 2013 +0200
+++ b/editors/ConfTreeNodeEditor.py	Fri May 10 10:24:59 2013 +0200
@@ -511,7 +511,7 @@
     
     def SetConfNodeParamsAttribute(self, *args, **kwargs):
         res, StructChanged = self.Controler.SetParamsAttribute(*args, **kwargs)
-        if StructChanged:
+        if StructChanged and self.ParamsEditor is not None:
             wx.CallAfter(self.RefreshConfNodeParamsSizer)
         wx.CallAfter(self.ParentWindow._Refresh, TITLE, FILEMENU)
         return res