From fb7368029b9004ca7e6dc91d8fb123ae7a7a78c5 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sun, 22 Aug 2021 20:40:12 -0400 Subject: [PATCH] Call super method in UndoItem::step() and RedoItem::step(). --- src/app/MenuBar.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/MenuBar.cpp b/src/app/MenuBar.cpp index 371aed99..a7d5003b 100644 --- a/src/app/MenuBar.cpp +++ b/src/app/MenuBar.cpp @@ -123,6 +123,7 @@ struct EditButton : MenuButton { void step() override { text = "Undo " + APP->history->getUndoName(); disabled = !APP->history->canUndo(); + MenuItem::step(); } void onAction(const ActionEvent& e) override { APP->history->undo(); @@ -134,6 +135,7 @@ struct EditButton : MenuButton { void step() override { text = "Redo " + APP->history->getRedoName(); disabled = !APP->history->canRedo(); + MenuItem::step(); } void onAction(const ActionEvent& e) override { APP->history->redo();