controls/PouInstanceVariablesPanel.py
changeset 1107 9303f6b900fe
parent 1082 5a08404d5dda
child 1189 93a4431a0cd8
--- a/controls/PouInstanceVariablesPanel.py	Thu May 09 18:40:38 2013 +0200
+++ b/controls/PouInstanceVariablesPanel.py	Thu May 09 18:49:08 2013 +0200
@@ -348,6 +348,8 @@
             if item is not None and flags & CT.TREE_HITTEST_ONITEMLABEL:
                 item_infos = self.VariablesList.GetPyData(item)
                 if item_infos is not None and item_infos["class"] in ITEMS_VARIABLE:
+                    self.ParentWindow.EnsureTabVisible(
+                        self.ParentWindow.DebugVariablePanel)
                     item_path = "%s.%s" % (instance_path, item_infos["name"])
                     data = wx.TextDataObject(str((item_path, "debug")))
                     dragSource = wx.DropSource(self.VariablesList)