Skip to content

Commit

Permalink
Update toolbox.cpp
Browse files Browse the repository at this point in the history
Fix broken shortcut for local pivot

Ref: #126
  • Loading branch information
rodlie committed May 5, 2024
1 parent 1316350 commit ab60cfa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/GUI/toolbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,9 @@ void MainWindow::setupToolBoxMain()
mLocalPivotAct = new QAction(mDocument.fLocalPivot ? QIcon::fromTheme("pivotLocal") : QIcon::fromTheme("pivotGlobal"),
tr("Pivot Global / Local"),
this);
mLocalPivotAct->setShortcut(QKeySequence(AppSupport::getSettings("shortcuts",
"localPivot",
"P").toString()));
connect(mLocalPivotAct, &QAction::triggered,
this, [this]() {
mDocument.fLocalPivot = !mDocument.fLocalPivot;
Expand Down

0 comments on commit ab60cfa

Please sign in to comment.