Make sure wxWidgets updates DRC notebook when switching pages.

Fixes: lp:1583466
* https://bugs.launchpad.net/kicad/+bug/1583466
This commit is contained in:
Jeff Young 2018-01-16 19:09:37 +00:00 committed by jean-pierre charras
parent 2e79b93b99
commit a386da9ee9
1 changed files with 3 additions and 0 deletions

View File

@ -526,6 +526,9 @@ void DIALOG_DRC_CONTROL::OnLeftDClickUnconnected( wxMouseEvent& event )
*/
void DIALOG_DRC_CONTROL::OnChangingMarkerList( wxNotebookEvent& event )
{
// Shouldn't be necessary, but is on at least OSX
m_Notebook->ChangeSelection( event.GetSelection() );
m_DeleteCurrentMarkerButton->Enable( false );
m_ClearanceListBox->SetSelection( -1 );
m_UnconnectedListBox->SetSelection( -1 );