mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibGUI: Clear undo stack when opening a new document
This commit is contained in:
committed by
Andreas Kling
parent
88803b2e34
commit
67537bfc80
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user