Don't trigger fitChanged if nothing changed, only call SetItem on text

changes
This commit is contained in:
cncfanatics
2010-09-15 18:05:33 +02:00
parent 54ae8919b3
commit 5911480ba5
3 changed files with 10 additions and 8 deletions

View File

@@ -59,8 +59,10 @@ class FittingView(d.Display):
if fitID != None:
cFit = controller.Fit.getInstance()
populate = cFit.appendModule(fitID, itemID)
if populate: self.slotsChanged()
wx.PostEvent(self.mainFrame, FitChanged(fitID=fitID))
if populate:
self.slotsChanged()
if populate is not None:
wx.PostEvent(self.mainFrame, FitChanged(fitID=fitID))
def removeItem(self, event):
row, _ = self.HitTest(event.Position)