Fixed crashes with the shortcuts that are not defined in shortcuts.cpp
This commit is contained in:
parent
3aa3ec93a3
commit
90895e0ab2
1 changed files with 3 additions and 0 deletions
|
@ -97,6 +97,9 @@ bool ActionEventObserver::eventFilter(QObject *watched, QEvent *event)
|
|||
|
||||
Ms::Shortcut* shortcut = Ms::Shortcut::getShortcutByKeySequence(shortCutEvent->key(), m_scoreState);
|
||||
|
||||
if (!shortcut)
|
||||
return false;
|
||||
|
||||
telemetryService()->sendEvent("shortcut", shortcut->key());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue