Check if symbol is disabled first
By checking for disabledness of the symbol first we skip potentially unnecessary validation that in turn would throw an unnecessary warning Fixes https://gitlab.com/kicad/code/kicad/issues/7338
This commit is contained in:
parent
573dd36515
commit
de12ebf16f
|
@ -237,7 +237,7 @@ bool DIALOG_SPICE_MODEL::TransferDataFromWindow()
|
||||||
// Passive
|
// Passive
|
||||||
if( page == m_passive )
|
if( page == m_passive )
|
||||||
{
|
{
|
||||||
if( !m_passive->Validate() && !m_disabled->GetValue() )
|
if( !m_disabled->GetValue() && !m_passive->Validate() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
switch( m_pasType->GetSelection() )
|
switch( m_pasType->GetSelection() )
|
||||||
|
|
Loading…
Reference in New Issue