fix the fix

This commit is contained in:
HomeWorld
2010-11-11 13:56:59 +02:00
parent 1726384036
commit 87f1ef159e
2 changed files with 3 additions and 4 deletions

2
eos

Submodule eos updated: 39c85374b9...66d215ab1a

View File

@@ -768,8 +768,7 @@ class PFTabsContainer(wx.Window):
self.tabs[self.GetTabsCount() - 1].SetSelected(True)
else:
self.tabs[tab].SetSelected(True)
elif self.GetTabsCount() == 0:
self.Destroy()
self.AdjustTabsSize()
self.Refresh()
@@ -807,7 +806,7 @@ class PFTabsContainer(wx.Window):
tabsWidth += tab.tabWidth - self.inclination*2
pos = tabsWidth
selected = None
for i in xrange(len(self.tabs) - 1, -1, -1):
tab = self.tabs[i]
width = tab.tabWidth - self.inclination*2