pcbnew: Handle missing footprint wizards
When we do not have any footprint wizards to display, we cannot select
the grid rows.
Fixes: lp:1823608
* https://bugs.launchpad.net/kicad/+bug/1823608
(cherry picked from commit 7cf394e34f
)
This commit is contained in:
parent
15cb032ab7
commit
0b754562f6
|
@ -130,8 +130,10 @@ void DIALOG_FOOTPRINT_WIZARD_LIST::initLists()
|
|||
if ( width > m_footprintGeneratorsGrid->GetColMinimalAcceptableWidth() )
|
||||
m_footprintGeneratorsGrid->SetColSize( FP_GEN_ROW_DESCR, width );
|
||||
|
||||
// Select the first row
|
||||
// Select the first row if it exists
|
||||
m_footprintGeneratorsGrid->ClearSelection();
|
||||
|
||||
if( m_footprintGeneratorsGrid->GetNumberRows() > 0 )
|
||||
m_footprintGeneratorsGrid->SelectRow( 0, false );
|
||||
|
||||
// Display info about scripts: Search paths
|
||||
|
|
Loading…
Reference in New Issue