From 87f1ef159e20483c5cf7da601559de5cce7161ba Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Thu, 11 Nov 2010 13:56:59 +0200 Subject: [PATCH] fix the fix --- eos | 2 +- miniframe.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/eos b/eos index 39c85374b..66d215ab1 160000 --- a/eos +++ b/eos @@ -1 +1 @@ -Subproject commit 39c85374b98bea389dfa159b32a1003aa4719105 +Subproject commit 66d215ab1a701025a14195614ff5e88e8a51a965 diff --git a/miniframe.py b/miniframe.py index cf238c8c2..73da5792b 100755 --- a/miniframe.py +++ b/miniframe.py @@ -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