Fix issue with crashing (set weight not working as intended?)
This commit is contained in:
@@ -314,7 +314,7 @@ class FittingView(d.Display):
|
||||
self.slotsChanged()
|
||||
sFit.switchFit(fitID)
|
||||
# @todo pheonix: had to disable this as it was causing a crash at the wxWidgets level. Dunno why, investigate
|
||||
#wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=fitID))
|
||||
wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=fitID))
|
||||
|
||||
event.Skip()
|
||||
|
||||
@@ -662,10 +662,11 @@ class FittingView(d.Display):
|
||||
if isinstance(mod, Rack) and \
|
||||
sFit.serviceFittingOptions["rackSlots"] and \
|
||||
sFit.serviceFittingOptions["rackLabels"]:
|
||||
font.SetWeight(wx.FONTWEIGHT_BOLD)
|
||||
# @ todo pheonix: SetWeight is causing a hard crash, possibly a wxPython bug?
|
||||
#font.SetWeight(wx.FONTWEIGHT_BOLD)
|
||||
self.SetItemFont(i, font)
|
||||
else:
|
||||
font.SetWeight(wx.FONTWEIGHT_NORMAL)
|
||||
#font.SetWeight(wx.FONTWEIGHT_NORMAL)
|
||||
self.SetItemFont(i, font)
|
||||
|
||||
self.Thaw()
|
||||
|
||||
Reference in New Issue
Block a user