Run CommonSettingsChanged after all panels have been committed.

Fixes: lp:1787377
* https://bugs.launchpad.net/kicad/+bug/1787377
This commit is contained in:
Jeff Young 2018-08-19 17:06:59 +01:00
parent 779398891d
commit 2e5d8061aa
2 changed files with 7 additions and 3 deletions

View File

@ -113,8 +113,6 @@ bool PANEL_COMMON_SETTINGS::TransferDataFromWindow()
Pgm().ForceSystemPdfBrowser( m_defaultPDFViewer->GetValue() );
Pgm().WritePdfBrowserInfos();
m_dialog->Kiway().CommonSettingsChanged();
return true;
}

View File

@ -527,7 +527,13 @@ bool EDA_BASE_FRAME::ShowPreferences( EDA_HOTKEY_CONFIG* aHotkeys, EDA_HOTKEY_CO
frame->InstallPreferences( &dlg );
}
return( dlg.ShowModal() != wxID_CANCEL );
if( dlg.ShowModal() == wxID_OK )
{
dlg.Kiway().CommonSettingsChanged();
return true;
}
return false;
}