(self)
| 68 | return len(self.internalHistory) > 0 |
| 69 | |
| 70 | def Undo(self): |
| 71 | sFit = Fit.getInstance() |
| 72 | success = self.internalHistory.undoAll() |
| 73 | eos.db.flush() |
| 74 | sFit.recalc(self.fitID) |
| 75 | sFit.fill(self.fitID) |
| 76 | eos.db.commit() |
| 77 | wx.PostEvent(gui.mainFrame.MainFrame.getInstance(), GE.FitChanged(fitIDs=(self.fitID,))) |
| 78 | return success |
nothing calls this directly
no test coverage detected