Skip to content

Commit

Permalink
Run CommonSettingsChanged after all panels have been committed.
Browse files Browse the repository at this point in the history
  • Loading branch information
jey5nd6 committed Aug 21, 2018
1 parent 7793988 commit 2e5d806
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 0 additions & 2 deletions common/dialogs/panel_common_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ bool PANEL_COMMON_SETTINGS::TransferDataFromWindow()
Pgm().ForceSystemPdfBrowser( m_defaultPDFViewer->GetValue() );
Pgm().WritePdfBrowserInfos();

m_dialog->Kiway().CommonSettingsChanged();

return true;
}

Expand Down
8 changes: 7 additions & 1 deletion common/eda_base_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand Down

0 comments on commit 2e5d806

Please sign in to comment.