Close any active editor before rebuilding netclass lists.

Fixes: lp:1809555
* https://bugs.launchpad.net/kicad/+bug/1809555
This commit is contained in:
Jeff Young 2018-12-24 01:53:48 +00:00
parent bebbe6ed22
commit 0c0dda54bf
1 changed files with 2 additions and 0 deletions

View File

@ -177,6 +177,8 @@ void PANEL_SETUP_NETCLASSES::addNet( wxString netName, const wxString& netclass
*/
void PANEL_SETUP_NETCLASSES::rebuildNetclassDropdowns()
{
m_membershipGrid->CommitPendingChanges( true );
wxArrayString netclassNames;
for( int ii = 0; ii < m_netclassGrid->GetNumberRows(); ii++ )