Sim Model Editor: Fix switching to NONE model in the SME
This commit is contained in:
parent
e7c43ca20a
commit
28e978ccc9
|
@ -349,10 +349,7 @@ void DIALOG_SIM_MODEL<T>::updateInstanceWidgets()
|
|||
{
|
||||
if( SIM_MODEL::TypeInfo( type ).deviceType == deviceType )
|
||||
{
|
||||
wxString description = SIM_MODEL::TypeInfo( type ).description;
|
||||
|
||||
if( !description.IsEmpty() )
|
||||
m_typeChoice->Append( description );
|
||||
m_typeChoice->Append( SIM_MODEL::TypeInfo( type ).description );
|
||||
|
||||
if( type == curModel().GetType() )
|
||||
m_typeChoice->SetSelection( m_typeChoice->GetCount() - 1 );
|
||||
|
|
Loading…
Reference in New Issue