Skip to content

Commit

Permalink
replace hard-coded shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Sep 10, 2016
1 parent ef363f9 commit 7e127c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Mod/Sketcher/Gui/CommandSketcherTools.cpp
Expand Up @@ -1535,7 +1535,7 @@ CmdSketcherCompCopy::CmdSketcherCompCopy()
sToolTipText = QT_TR_NOOP("Creates a clone of the geometry taking as reference the last selected point");
sWhatsThis = "Sketcher_CompCopy";
sStatusTip = sToolTipText;
sAccel = "CTRL+C";
sAccel = "CTRL+C";
eType = ForEdit;
}

Expand All @@ -1551,15 +1551,15 @@ void CmdSketcherCompCopy::activated(int iMsg)
}
else
return;

// Since the default icon is reset when enabing/disabling the command we have
// to explicitly set the icon of the used command.
Gui::ActionGroup* pcAction = qobject_cast<Gui::ActionGroup*>(_pcAction);
QList<QAction*> a = pcAction->actions();

assert(iMsg < a.size());
pcAction->setIcon(a[iMsg]->icon());
pcAction->setShortcut(QString::fromLatin1("CTRL+C"));
pcAction->setShortcut(QString::fromLatin1(this->sAccel));
}

Gui::Action * CmdSketcherCompCopy::createAction(void)
Expand Down

0 comments on commit 7e127c9

Please sign in to comment.