diff --git a/toonz/sources/toonz/shortcutpopup.cpp b/toonz/sources/toonz/shortcutpopup.cpp index 177f2c03..38f1b408 100644 --- a/toonz/sources/toonz/shortcutpopup.cpp +++ b/toonz/sources/toonz/shortcutpopup.cpp @@ -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(); }