PANEL_SETUP_BUSES: make delete a bus member working.
the member list was not updated when deleting a member. Fixes #13024 https://gitlab.com/kicad/code/kicad/issues/13024
This commit is contained in:
parent
9a25464337
commit
149ddf9ddb
|
@ -229,6 +229,15 @@ void PANEL_SETUP_BUSES::OnRemoveMember( wxCommandEvent& aEvent )
|
|||
|
||||
m_membersGrid->DeleteRows( curRow, 1 );
|
||||
|
||||
// Update the member list of the current bus alias from the members grid
|
||||
const std::shared_ptr<BUS_ALIAS>& alias = m_aliases[ m_lastAlias ];
|
||||
alias->Members().clear();
|
||||
|
||||
for( int ii = 0; ii < m_membersGrid->GetNumberRows(); ++ii )
|
||||
alias->Members().push_back( m_membersGrid->GetCellValue( ii, 0 ) );
|
||||
|
||||
m_membersGridDirty = true;
|
||||
|
||||
if( m_membersGrid->GetNumberRows() > 0 )
|
||||
{
|
||||
m_membersGrid->MakeCellVisible( std::max( 0, curRow-1 ), 0 );
|
||||
|
|
Loading…
Reference in New Issue