From 7e127c9b6a6a255c0f2977b4f7d4060273184f67 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 10 Sep 2016 14:49:39 +0200 Subject: [PATCH] replace hard-coded shortcut --- src/Mod/Sketcher/Gui/CommandSketcherTools.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/Sketcher/Gui/CommandSketcherTools.cpp b/src/Mod/Sketcher/Gui/CommandSketcherTools.cpp index 3bdf3ac62..efd27b3a8 100644 --- a/src/Mod/Sketcher/Gui/CommandSketcherTools.cpp +++ b/src/Mod/Sketcher/Gui/CommandSketcherTools.cpp @@ -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; } @@ -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(_pcAction); QList 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)