Check for tool manager before dereference
Changing common settings in EDA_BASE_FRAME may segfault for frames that don't implement tool manager yet (simulator) Fixes: lp:1849492 * https://bugs.launchpad.net/kicad/+bug/1849492
This commit is contained in:
parent
4004c733c8
commit
a934fa49aa
|
@ -393,6 +393,7 @@ void EDA_BASE_FRAME::ShowChangedLanguage()
|
||||||
|
|
||||||
void EDA_BASE_FRAME::CommonSettingsChanged( bool aEnvVarsChanged )
|
void EDA_BASE_FRAME::CommonSettingsChanged( bool aEnvVarsChanged )
|
||||||
{
|
{
|
||||||
|
if( GetToolManager() )
|
||||||
GetToolManager()->GetActionManager()->UpdateHotKeys( false );
|
GetToolManager()->GetActionManager()->UpdateHotKeys( false );
|
||||||
|
|
||||||
if( GetMenuBar() )
|
if( GetMenuBar() )
|
||||||
|
|
Loading…
Reference in New Issue