Don't fire events when loading dialog state.

(Fixes crash when opening Pin Properties dialog.)
This commit is contained in:
Jeff Young 2025-08-21 12:44:09 +01:00
parent 3f85071f91
commit 29a818218a

View File

@ -541,7 +541,7 @@ void DIALOG_SHIM::LoadControlState()
if( m_unitBinders.contains( win ) && !m_unitBinders[ win ]->UnitsInvariant() )
{
if( j.is_number_integer() )
m_unitBinders[ win ]->SetValue( j.get<int>() );
m_unitBinders[ win ]->ChangeValue( j.get<int>() );
}
else if( wxComboBox* combo = dynamic_cast<wxComboBox*>( win ) )
{