fix bug with TextViewer instance in debug mode, appears after transferring new program on PLC
authorSurkov Sergey <surkovsv93@gmail.com>
Tue, 27 Jun 2017 19:21:09 +0300
changeset 1710 953ceea2573e
parent 1709 1e8900fc8ddb
child 1711 a0682ec03f1f
fix bug with TextViewer instance in debug mode, appears after transferring new program on PLC
TextViewer isn't able to display debug values, so calling for this class SubscribeAllDataConsumers method causes error
IDEFrame.py
--- a/IDEFrame.py	Tue Jun 27 13:30:48 2017 +0300
+++ b/IDEFrame.py	Tue Jun 27 19:21:09 2017 +0300
@@ -2047,7 +2047,7 @@
                         self.TabsOpened.DeletePage(idx)
                     else:
                         editor.SubscribeAllDataConsumers()
-                elif editor.IsDebugging():
+                elif editor.IsDebugging() and hasattr(editor, 'SubscribeAllDataConsumers'):
                     editor.SubscribeAllDataConsumers()
             self.DebugVariablePanel.SubscribeAllDataConsumers()