From 28e978ccc9403b9c39f823390c18055dc8cc8af0 Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus Date: Fri, 18 Nov 2022 09:02:25 +0100 Subject: [PATCH] Sim Model Editor: Fix switching to NONE model in the SME --- eeschema/dialogs/dialog_sim_model.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/eeschema/dialogs/dialog_sim_model.cpp b/eeschema/dialogs/dialog_sim_model.cpp index 7109ec488e..7bb879050e 100644 --- a/eeschema/dialogs/dialog_sim_model.cpp +++ b/eeschema/dialogs/dialog_sim_model.cpp @@ -349,10 +349,7 @@ void DIALOG_SIM_MODEL::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 );