fix broken events preventing additions panels to not work

This commit is contained in:
Ryan Holmes
2017-07-03 01:46:46 -04:00
parent 1082d8a173
commit 0527a506ac
8 changed files with 17 additions and 3 deletions

View File

@@ -66,7 +66,6 @@ class CommandView(d.Display):
self.lastFitId = None
self.mainFrame.Bind(GE.FIT_CHANGED, CommandFits.populateFits)
self.mainFrame.Bind(GE.FIT_CHANGED, self.fitChanged)
self.Bind(wx.EVT_LEFT_DOWN, self.click)
self.Bind(wx.EVT_RIGHT_DOWN, self.click)
@@ -134,6 +133,8 @@ class CommandView(d.Display):
sFit = Fit.getInstance()
fit = sFit.getFit(event.fitID)
CommandFits.populateFits(event)
self.Parent.Parent.DisablePage(self, not fit or fit.isStructure)
# Clear list and get out if current fitId is None
@@ -165,6 +166,8 @@ class CommandView(d.Display):
self.update(stuff)
event.Skip()
def get(self, row):
numFits = len(self.fits)