--- a/Beremiz.py Sat Sep 26 18:44:25 2009 +0200
+++ b/Beremiz.py Fri Oct 02 11:25:35 2009 +0200
@@ -1273,6 +1273,8 @@
+ if self.PluginRoot is not None: + self.PluginRoot.CloseProject() self.DebugVariablePanel.SetDataProducer(None)
--- a/plugger.py Sat Sep 26 18:44:25 2009 +0200
+++ b/plugger.py Fri Oct 02 11:25:35 2009 +0200
@@ -560,7 +560,7 @@
#just created, must be saved
_self.ChangesToSave = True
def _getBuildPath(_self):
return self._getBuildPath()
@@ -570,7 +570,12 @@
PluggedChildsWithSameClass.append(newPluginOpj)
+ def ClearPluggedChilds(self): + for child in self.IterChilds(): + child.ClearPluggedChilds() + self.PluggedChilds = {} # Get library blocks if plcopen library exist
library_path = self.PluginLibraryFilePath()
@@ -881,6 +886,10 @@
+ def CloseProject(self): + self.ClearPluggedChilds() + self.AppFrame.Unbind(wx.EVT_TIMER, self.StatusTimer) if not self.SaveXMLFile():
self.SaveXMLFile(os.path.join(self.ProjectPath, 'plc.xml'))