Merge pull request #696 from manongjohn/fix_shortcut_popup_crash
Fix shortcut viewer crash on macOS
This commit is contained in:
commit
a6b6269c7c
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ ShortcutViewer::~ShortcutViewer() {}
|
||||||
|
|
||||||
void ShortcutViewer::setAction(QAction *action) {
|
void ShortcutViewer::setAction(QAction *action) {
|
||||||
m_action = action;
|
m_action = action;
|
||||||
setKeySequence(m_action->shortcut());
|
setKeySequence(m_action ? m_action->shortcut() : 0);
|
||||||
setFocus();
|
setFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue