Merge pull request #19253 from Jonezzzzz/SketcherGroupCommandsFix
Sketcher: Fixed Inconsistency between button tooltips and labeling for shortcuts.
This commit is contained in:
@@ -1121,6 +1121,8 @@ void GroupCommand::setup(Action *pcAction) {
|
||||
int idx = pcAction->property("defaultAction").toInt();
|
||||
if(idx>=0 && idx<(int)cmds.size() && cmds[idx].first) {
|
||||
auto cmd = cmds[idx].first;
|
||||
QString shortcut = cmd->getShortcut();
|
||||
pcAction->setShortcut(shortcut);
|
||||
pcAction->setText(QCoreApplication::translate(className(), getMenuText()));
|
||||
QIcon icon;
|
||||
if (auto childAction = cmd->getAction())
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user