diff -r 25054c592dc4 -r 4480b7da6bea ProjectController.py --- a/ProjectController.py Sat May 12 12:11:42 2012 +0200 +++ b/ProjectController.py Fri May 18 18:50:49 2012 +0200 @@ -59,10 +59,17 @@ + + + """+"\n".join(['' + for lib in features.libraries])+""" + + - """+"\n".join(['' for lib in features.libraries])+""" @@ -106,7 +113,7 @@ self.Libraries = [] TypeStack=[] for clsname in features.libraries: - if getattr(self.BeremizRoot, "Enable_"+clsname.rsplit('.',1)[-1]): + if self.BeremizRoot.Libraries is None or getattr(self.BeremizRoot.Libraries, "Enable_"+clsname.rsplit('.',1)[-1]): Lib = GetClassImporter(clsname)()(TypeStack) TypeStack.append(Lib.GetTypes()) self.Libraries.append(Lib) @@ -348,7 +355,7 @@ self.BufferProject() if self.AppFrame is not None: self.AppFrame.RefreshTitle() - self.AppFrame.RefreshInstancesTree() + self.AppFrame.RefreshPouInstanceVariablesPanel() self.AppFrame.RefreshFileMenu() self.AppFrame.RefreshEditMenu() self.AppFrame.RefreshEditor() @@ -1337,7 +1344,6 @@ self.UnsubscribeAllDebugIECVariable() self.ProgramTransferred() if self.AppFrame is not None: - self.AppFrame.RefreshInstancesTree() self.AppFrame.CloseObsoleteDebugTabs() self.logger.write(_("Transfer completed successfully.\n")) else: