ACTION_MANAGER: prevent null object call when used without a host frame

This commit is contained in:
Tomasz Wlostowski 2020-01-06 14:45:07 +01:00
parent 065d634b30
commit 33f9843fb7
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ void ACTION_MANAGER::UpdateHotKeys( bool aFullUpdate )
m_actionHotKeys.clear(); m_actionHotKeys.clear();
m_hotkeys.clear(); m_hotkeys.clear();
if( aFullUpdate ) if( aFullUpdate && m_toolMgr->GetEditFrame() )
{ {
ReadLegacyHotkeyConfig( m_toolMgr->GetEditFrame()->ConfigBaseName(), legacyHotKeyMap ); ReadLegacyHotkeyConfig( m_toolMgr->GetEditFrame()->ConfigBaseName(), legacyHotKeyMap );
ReadHotKeyConfig( wxEmptyString, userHotKeyMap ); ReadHotKeyConfig( wxEmptyString, userHotKeyMap );