Fix for DND

This commit is contained in:
HomeWorld
2010-11-18 15:54:44 +02:00
parent fe3da6188f
commit 7bd26a29bb

View File

@@ -1570,7 +1570,7 @@ class FitItem(wx.Window):
targetWnd = wx.FindWindowAtPointer()
pjWnd = self.mainFrame.additionsPane.projectedPage
msWnd = self.mainFrame.fitMultiSwitch
msWnd = self.mainFrame.fitMultiSwitch.tabsContainer
cfitWnd = self.mainFrame.fitMultiSwitch.GetCurrentPage()
gfWnd = self.mainFrame.graphFrame
@@ -1579,15 +1579,15 @@ class FitItem(wx.Window):
if targetWnd == cfitWnd:
wx.PostEvent(self.mainFrame, FitSelected(fitID=self.fitID))
elif targetWnd == cfitWnd.view:
wx.PostEvent(self.mainFrame, FitSelected(fitID=self.fitID))
elif targetWnd.Parent == cfitWnd.view:
wx.PostEvent(self.mainFrame, FitSelected(fitID=self.fitID))
# elif targetWnd == cfitWnd.view:
# wx.PostEvent(self.mainFrame, FitSelected(fitID=self.fitID))
# elif targetWnd.Parent == cfitWnd.view:
# wx.PostEvent(self.mainFrame, FitSelected(fitID=self.fitID))
elif targetWnd == msWnd:
if self.mainFrame.getActiveFit():
self.mainFrame.fitMultiSwitch.AddTab()
self.mainFrame.fitMultiSwitch.AddPage(wx.Panel(self,size = (0,0)))
wx.PostEvent(self.mainFrame, FitSelected(fitID=self.fitID))
elif targetWnd == pjWnd:
activeFit = self.mainFrame.getActiveFit()