Browse Source

Call super method in UndoItem::step() and RedoItem::step().

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
fb7368029b
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/app/MenuBar.cpp

+ 2
- 0
src/app/MenuBar.cpp View File

@@ -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();


Loading…
Cancel
Save