Sim Model Editor: Fix switching to NONE model in the SME

This commit is contained in:
Mikolaj Wielgus 2022-11-18 09:02:25 +01:00
parent e7c43ca20a
commit 28e978ccc9
1 changed files with 1 additions and 4 deletions

View File

@ -349,10 +349,7 @@ void DIALOG_SIM_MODEL<T>::updateInstanceWidgets()
{ {
if( SIM_MODEL::TypeInfo( type ).deviceType == deviceType ) if( SIM_MODEL::TypeInfo( type ).deviceType == deviceType )
{ {
wxString description = SIM_MODEL::TypeInfo( type ).description; m_typeChoice->Append( SIM_MODEL::TypeInfo( type ).description );
if( !description.IsEmpty() )
m_typeChoice->Append( description );
if( type == curModel().GetType() ) if( type == curModel().GetType() )
m_typeChoice->SetSelection( m_typeChoice->GetCount() - 1 ); m_typeChoice->SetSelection( m_typeChoice->GetCount() - 1 );