LibGUI: Clear undo stack when opening a new document

This commit is contained in:
Carlos César Neves Enumo 2021-05-05 12:21:45 -03:00 committed by Andreas Kling
commit 67537bfc80
Notes: sideshowbarker 2024-07-18 18:39:29 +09:00
3 changed files with 9 additions and 0 deletions

View file

@ -26,6 +26,8 @@ public:
void finalize_current_combo();
void clear();
private:
struct UndoCommandsContainer {
NonnullOwnPtrVector<Command> m_undo_vector;