| 30 | } |
| 31 | |
| 32 | bool 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 | |
| 45 | void CAction::PerformUndo(CMainFrame &cxt) { |