Don't run implant toggle when there is not fit loaded
This commit is contained in:
@@ -76,10 +76,11 @@ class ImplantView(wx.Panel):
|
|||||||
|
|
||||||
def OnRadioSelect(self, event):
|
def OnRadioSelect(self, event):
|
||||||
fitID = self.mainFrame.getActiveFit()
|
fitID = self.mainFrame.getActiveFit()
|
||||||
sFit = Fit.getInstance()
|
if fitID is not None:
|
||||||
sFit.toggleImplantSource(fitID, ImplantLocation.FIT if self.rbFit.GetValue() else ImplantLocation.CHARACTER)
|
sFit = Fit.getInstance()
|
||||||
|
sFit.toggleImplantSource(fitID, ImplantLocation.FIT if self.rbFit.GetValue() else ImplantLocation.CHARACTER)
|
||||||
|
|
||||||
wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=fitID))
|
wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=fitID))
|
||||||
|
|
||||||
|
|
||||||
class ImplantDisplay(d.Display):
|
class ImplantDisplay(d.Display):
|
||||||
|
|||||||
Reference in New Issue
Block a user