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
--- 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()