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,7 +393,8 @@ void EDA_BASE_FRAME::ShowChangedLanguage()
|
|||
|
||||
void EDA_BASE_FRAME::CommonSettingsChanged( bool aEnvVarsChanged )
|
||||
{
|
||||
GetToolManager()->GetActionManager()->UpdateHotKeys( false );
|
||||
if( GetToolManager() )
|
||||
GetToolManager()->GetActionManager()->UpdateHotKeys( false );
|
||||
|
||||
if( GetMenuBar() )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue