Little fix of a minor frack-up on forward btn status

This commit is contained in:
HomeWorld
2010-10-26 21:09:13 +03:00
parent 34aad9c4c2
commit cd421d48fc

View File

@@ -159,12 +159,9 @@ class HeaderPane (wx.Panel):
def OnEnterWForward(self, event):
self.stStatus.SetLabel("Forward")
stage = self.Parent.GetActiveStage()
stage +=1
if stage >3:
stage = 3
if stage < 3:
data = self.Parent.GetStageData(stage)
if data != -1:
if self.Parent.GetStageData(stage+1) != -1:
self.stStatus.Enable()
else:
self.stStatus.Disable()