Adding support for not closing debug tabs and remove variable in variable debug panel if instance still exist in newly transfered program
authorlaurent
Mon, 05 Mar 2012 12:02:20 +0100
changeset 697 3e83853081d4
parent 696 9265781619b7
child 698 513c66e64b8e
child 699 6ff64cadb1ff
Adding support for not closing debug tabs and remove variable in variable debug panel if instance still exist in newly transfered program
LPCBeremiz.py
--- a/LPCBeremiz.py	Mon Feb 27 16:51:43 2012 +0100
+++ b/LPCBeremiz.py	Mon Mar 05 12:02:20 2012 +0100
@@ -872,11 +872,11 @@
         data = builder.GetBinaryCode()
         if data is not None :
             if self._connector.NewPLC(builder.GetBinaryCodeMD5(), data, []):
-                if self.AppFrame is not None:
-                    self.AppFrame.CloseDebugTabs()
-                    self.AppFrame.RefreshInstancesTree()
                 self.UnsubscribeAllDebugIECVariable()
                 self.ProgramTransferred()
+                if self.AppFrame is not None:
+                    self.AppFrame.RefreshInstancesTree()
+                    self.AppFrame.CloseObsoleteDebugTabs()
                 self.logger.write(_("Transfer completed successfully.\n"))
             else:
                 self.logger.write_error(_("Transfer failed\n"))