CvPcb: fix no footprints shown in list when no legacy libraries are defined in project file.
This commit is contained in:
parent
f0412874c0
commit
bcf79484f0
|
@ -748,11 +748,11 @@ void CVPCB_MAINFRAME::DisplayStatus()
|
||||||
|
|
||||||
bool CVPCB_MAINFRAME::LoadFootprintFiles()
|
bool CVPCB_MAINFRAME::LoadFootprintFiles()
|
||||||
{
|
{
|
||||||
// Check if there are footprint libraries in project file.
|
// Check if there are footprint libraries in the footprint library table.
|
||||||
if( m_ModuleLibNames.GetCount() == 0 )
|
if( m_footprintLibTable == NULL || m_footprintLibTable->GetCount() == 0 )
|
||||||
{
|
{
|
||||||
wxMessageBox( _( "No PCB footprint libraries are listed in the current project file." ),
|
wxMessageBox( _( "No PCB footprint libraries are listed in the current footprint "
|
||||||
_( "Project File Error" ), wxOK | wxICON_ERROR );
|
"library table." ), _( "Configuration Error" ), wxOK | wxICON_ERROR );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue