Clear selection before sending table msg (KICAD-KWE).

(cherry picked from commit a3bf095387)
This commit is contained in:
Jeff Young
2025-07-15 15:25:15 +01:00
parent c9bf1d1b40
commit c0d2ce00d4
2 changed files with 5 additions and 2 deletions
@@ -768,7 +768,9 @@ void DIALOG_LIB_SYMBOL_PROPERTIES::OnEditSpiceModel( wxCommandEvent& event )
if( !found )
{
m_grid->ClearSelection();
m_fields->erase( m_fields->begin() + ii );
wxGridTableMessage msg( m_fields, wxGRIDTABLE_NOTIFY_ROWS_DELETED, ii, 1 );
m_grid->ProcessTableMessage( msg );
}
@@ -610,9 +610,10 @@ void DIALOG_SYMBOL_PROPERTIES::OnEditSpiceModel( wxCommandEvent& event )
if( !found )
{
m_fields->erase( m_fields->begin() + ii );
wxGridTableMessage msg( m_fields, wxGRIDTABLE_NOTIFY_ROWS_DELETED, ii, 1 );
m_fieldsGrid->ClearSelection();
m_fields->erase( m_fields->begin() + ii );
wxGridTableMessage msg( m_fields, wxGRIDTABLE_NOTIFY_ROWS_DELETED, ii, 1 );
m_fieldsGrid->ProcessTableMessage( msg );
}
}