# HG changeset patch # User Surkov Sergey # Date 1498580469 -10800 # Node ID 953ceea2573eab4f10f156c41a60a4a453d6f87c # Parent 1e8900fc8ddbce31d1298d0d302a475535ad856c 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 diff -r 1e8900fc8ddb -r 953ceea2573e 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()