MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / Commit

Method Commit

Source/Action.cpp:32–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32bool CAction::Commit(CMainFrame &cxt) {
33 if (done_)
34 return false;
35 SaveUndoState(cxt);
36 if (!SaveState(cxt)) // TODO: remove
37 return false; // Operation cancelled
38 Redo(cxt);
39 SaveRedoState(cxt);
40 UpdateViews(cxt);
41 return done_ = true;
42}
43
44
45void CAction::PerformUndo(CMainFrame &cxt) {

Callers 1

AddActionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected