# HG changeset patch # User Laurent Bessard # Date 1368118148 -7200 # Node ID 9303f6b900fec94c395c0414784315ab329247d2 # Parent 843d181f73b45d04779c794163d4c01b0e33e694 Fixed Drag'n dropping from PouInstanceVariablesPanel ensuring DebugVariablePanel is visible before starting drag'n drop diff -r 843d181f73b4 -r 9303f6b900fe 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)