Notify clients when GRID_TRICKS toggles checkboxes.

This commit is contained in:
Jeff Young 2018-03-24 13:11:02 +00:00
parent f317b10adf
commit 97fffe875f
2 changed files with 5 additions and 4 deletions

View File

@ -92,6 +92,11 @@ bool GRID_TRICKS::toggleCell( int aRow, int aCol )
// Mac needs this for the keyboard events; Linux appears to always need it.
m_grid->ForceRefresh();
// Let any clients know
wxGridEvent event( m_grid->GetId(), wxEVT_GRID_CELL_CHANGED, m_grid, aRow, aCol );
event.SetString( model->GetValue( aRow, aCol ) );
m_grid->GetEventHandler()->ProcessEvent( event );
return true;
}

View File

@ -262,10 +262,6 @@ void FOOTPRINT_WIZARD_FRAME::ParametersUpdated( wxGridEvent& event )
bool has_changed = false;
int count = m_parameterGrid->GetNumberRows();
// Skip extra event, useless
if( event.GetString() == m_parameterGrid->GetCellValue( event.GetRow(), WIZ_COL_VALUE ) )
return;
for( int prm_id = 0; prm_id < count; ++prm_id )
{
wxString value = m_parameterGrid->GetCellValue( prm_id, WIZ_COL_VALUE );