Fixed Drag'n dropping from PouInstanceVariablesPanel ensuring DebugVariablePanel is visible before starting drag'n drop
authorLaurent Bessard
Thu, 09 May 2013 18:49:08 +0200
changeset 1107 9303f6b900fe
parent 1106 843d181f73b4
child 1108 1ec5b4d244f3
Fixed Drag'n dropping from PouInstanceVariablesPanel ensuring DebugVariablePanel is visible before starting drag'n drop
controls/PouInstanceVariablesPanel.py
--- 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)