Merge pull request #696 from manongjohn/fix_shortcut_popup_crash

Fix shortcut viewer crash on macOS
This commit is contained in:
manongjohn 2021-05-12 07:36:38 -04:00 committed by GitHub
commit a6b6269c7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,7 @@ ShortcutViewer::~ShortcutViewer() {}
void ShortcutViewer::setAction(QAction *action) {
m_action = action;
setKeySequence(m_action->shortcut());
setKeySequence(m_action ? m_action->shortcut() : 0);
setFocus();
}