diff options
| author | Glenn Smith <glenn@vector35.com> | 2023-05-23 20:11:07 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2023-06-08 17:18:21 -0400 |
| commit | 0882343191078862361937493035030128230878 (patch) | |
| tree | f5ef5168066c53b85fd9574225df7411817bb577 /binaryview.cpp | |
| parent | 30784c736f7ed7cc796573d81021bd3ef10fded3 (diff) | |
Undo entry states and reverting
Diffstat (limited to 'binaryview.cpp')
| -rw-r--r-- | binaryview.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/binaryview.cpp b/binaryview.cpp index be4c4ca7..b5e80a68 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -1357,15 +1357,21 @@ bool BinaryView::SaveAutoSnapshot( } -void BinaryView::BeginUndoActions() +string BinaryView::BeginUndoActions() { - m_file->BeginUndoActions(); + return m_file->BeginUndoActions(); } -void BinaryView::CommitUndoActions() +void BinaryView::CommitUndoActions(const string& id) { - m_file->CommitUndoActions(); + m_file->CommitUndoActions(id); +} + + +void BinaryView::RevertUndoActions(const string& id) +{ + m_file->RevertUndoActions(id); } |
