From b0af66afc7182f34b074d6584463fda1cd2c0391 Mon Sep 17 00:00:00 2001 From: ferdymercury <5771669-ferdymercury@users.noreply.gitlab.com> Date: Sat, 22 Aug 2020 17:11:21 +0000 Subject: [PATCH] Allow empty value field if simulation is disabled --- eeschema/dialogs/dialog_spice_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/dialogs/dialog_spice_model.cpp b/eeschema/dialogs/dialog_spice_model.cpp index a283e15778..3da6e84494 100644 --- a/eeschema/dialogs/dialog_spice_model.cpp +++ b/eeschema/dialogs/dialog_spice_model.cpp @@ -201,7 +201,7 @@ bool DIALOG_SPICE_MODEL::TransferDataFromWindow() // Passive if( page == m_passive ) { - if( !m_passive->Validate() ) + if( !m_passive->Validate() && !m_disabled->GetValue() ) return false; switch( m_pasType->GetSelection() )