forked from qt-creator/qt-creator
Macros: Fix shortcut display on macOS
Some "NativeText" parameters were missing. Change-Id: Id08b8281d1458c05ff302011e32d8babbaf7b2bc Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -96,8 +96,10 @@ void MacroOptionsWidget::createTable()
|
||||
|
||||
Core::Command *command =
|
||||
Core::ActionManager::command(base.withSuffix(macro->displayName()));
|
||||
if (command && command->action())
|
||||
macroItem->setText(2, command->action()->shortcut().toString());
|
||||
if (command && command->action()) {
|
||||
macroItem->setText(2,
|
||||
command->action()->shortcut().toString(QKeySequence::NativeText));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user