Fix scan network functionality, project tree not refreshed after adding slaves
authorLaurent Bessard
Mon, 15 Apr 2013 00:40:47 +0200
changeset 2127 32255ca50fb0
parent 2126 7b5e83c2c23d
child 2128 c053f90229bc
Fix scan network functionality, project tree not refreshed after adding slaves
etherlab/EthercatMaster.py
--- a/etherlab/EthercatMaster.py	Mon Apr 15 00:37:59 2013 +0200
+++ b/etherlab/EthercatMaster.py	Mon Apr 15 00:40:47 2013 +0200
@@ -435,7 +435,10 @@
                         self.SetSlaveAlias(slave["idx"], slave["alias"])
                         type_infos["device_type"] = device.getType().getcontent()
                         self.SetSlaveType(slave["idx"], type_infos)
-
+            
+                if app_frame:
+                    app_frame.RefreshProjectTree()
+            
     def CTNAddChild(self, CTNName, CTNType, IEC_Channel=0):
         """
         Create the confnodes that may be added as child to this node self