From c3793e4660480dd1ee7712ffdd4265a8a4db0e3f Mon Sep 17 00:00:00 2001 From: Roman Rolinsky Date: Mon, 30 Apr 2007 23:43:48 +0000 Subject: [PATCH] set drop target on panel if present git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wx/tools/XRCed/tree.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wxPython/wx/tools/XRCed/tree.py b/wxPython/wx/tools/XRCed/tree.py index e2ab28a403..949046400e 100644 --- a/wxPython/wx/tools/XRCed/tree.py +++ b/wxPython/wx/tools/XRCed/tree.py @@ -1038,7 +1038,10 @@ class XML_Tree(wx.TreeCtrl): wx.EVT_CLOSE(testWin, self.OnCloseTestWin) wx.EVT_SIZE(testWin, self.OnSizeTestWin) # Add drop target - testWin.SetDropTarget(DropTarget()) + if testWin.panel: + testWin.panel.SetDropTarget(DropTarget()) + else: + testWin.SetDropTarget(DropTarget()) # Reset highlights testWin.highLight = testWin.highLightDT = None if highLight and not self.pendingHighLight: -- 2.45.2