# HG changeset patch
# User Laurent Bessard
# Date 1368174299 -7200
# Node ID ee1a8c961f117c2ec65ed76703adc4579d252c81
# Parent  b6e252733c648fcf4c0a71222a3cacbc6bcfa67f
Fixed bug when changing IEC_Channel of node without params

diff -r b6e252733c64 -r ee1a8c961f11 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