dialog_sim_model: ensure the Model panel is always correctly built.

Fixes #14904
https://gitlab.com/kicad/code/kicad/-/issues/14904
This commit is contained in:
jean-pierre charras 2023-06-12 16:40:25 +02:00
parent 451b9e20a1
commit a29f261d31
1 changed files with 1 additions and 0 deletions

View File

@ -1031,6 +1031,7 @@ void DIALOG_SIM_MODEL<T_symbol, T_field>::onRadioButton( wxCommandEvent& aEvent
m_deviceTypeChoice->Enable( !fromLibrary );
m_staticTextSpiceType->Enable( !fromLibrary );
m_prevModel = nullptr; // Ensure the Model panel will be rebuild after updating other params.
updateWidgets();
}