Fixed an oopsie

This commit is contained in:
HomeWorld
2010-11-18 11:43:36 +02:00
parent 7aec5e9c95
commit 778d4e30cb

View File

@@ -676,18 +676,18 @@ class PFTabsContainer(wx.Panel):
def OnLeftDown(self, event):
mposx,mposy = event.GetPosition()
if self.showAddButton:
if not self.startDrag:
tab = self.FindTabAtPos(mposx, mposy)
if tab:
self.CheckTabSelected(tab, mposx, mposy)
if not self.startDrag:
tab = self.FindTabAtPos(mposx, mposy)
if tab:
self.CheckTabSelected(tab, mposx, mposy)
if self.showAddButton:
self.startDrag = True
tx,ty = tab.GetPosition()
self.dragx = mposx - tx
self.dragy = self.containerHeight - self.height
self.Refresh()
self.Refresh()
self.draggedTab = tab
self.draggedTab = tab
def OnLeftUp(self, event):
mposx,mposy = event.GetPosition()