diff options
Diffstat (limited to 'Userland/Libraries/LibGUI/UndoStack.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/UndoStack.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/UndoStack.cpp b/Userland/Libraries/LibGUI/UndoStack.cpp index 7267c83bf4..7f32d3e4fb 100644 --- a/Userland/Libraries/LibGUI/UndoStack.cpp +++ b/Userland/Libraries/LibGUI/UndoStack.cpp @@ -80,4 +80,10 @@ void UndoStack::finalize_current_combo() m_stack.prepend(move(undo_commands_container)); } +void UndoStack::clear() +{ + m_stack.clear(); + m_stack_index = 0; +} + } |