Skip to content

Commit

Permalink
Fixed Undo/Redo shortcuts to be configurable
Browse files Browse the repository at this point in the history
Closes #2669
  • Loading branch information
bjorn committed Nov 19, 2019
1 parent 7be422a commit 954503f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tiled/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ MainWindow::MainWindow(QWidget *parent, Qt::WindowFlags flags)
undoAction->setShortcuts(QKeySequence::Undo);
redoAction->setShortcuts(redoShortcuts);

ActionManager::registerAction(undoAction, "Undo");
ActionManager::registerAction(redoAction, "Redo");

auto snappingGroup = new QActionGroup(this);
mUi->actionSnapNothing->setActionGroup(snappingGroup);
mUi->actionSnapToGrid->setActionGroup(snappingGroup);
Expand Down

0 comments on commit 954503f

Please sign in to comment.