Edit library table through backing table instead of grid.

While editing the grid works on OSX, it doesn't appear to on MSW or
GTK.  Whether or not editing the backing table is any better or not
remains to be seen....

Fixes https://gitlab.com/kicad/code/kicad/issues/7323
This commit is contained in:
Jeff Young 2021-02-03 15:49:46 +00:00
parent c220913aa1
commit 2faf721360
1 changed files with 3 additions and 2 deletions

View File

@ -750,8 +750,9 @@ void PANEL_SYM_LIB_TABLE::onConvertLegacyLibraries( wxCommandEvent& event )
relPath = NormalizePath( newLib.GetFullPath(), &Pgm().GetLocalEnvVariables(),
m_project );
m_cur_grid->SetCellValue( row, COL_URI, relPath );
m_cur_grid->SetCellValue( row, COL_TYPE, kicadType );
auto model = static_cast<SYMBOL_LIB_TABLE_GRID*>( m_cur_grid->GetTable() );
model->SetValue( row, COL_URI, relPath );
model->SetValue( row, COL_TYPE, kicadType );
}
else
{