Fix some issues with the previous commit.
This commit is contained in:
parent
5a48c800ee
commit
c69080f11e
|
@ -53,9 +53,6 @@ EDA_LIST_DIALOG::EDA_LIST_DIALOG( EDA_DRAW_FRAME* aParent, const wxString& aTitl
|
|||
|
||||
initDialog( aItemHeaders, aSelection );
|
||||
|
||||
if( aItemHeaders.IsEmpty() )
|
||||
m_listBox->SetSingleStyle( wxLC_NO_HEADER, true );
|
||||
|
||||
// DIALOG_SHIM needs a unique hash_key because classname is not sufficient
|
||||
// because so many dialogs share this same class, with different numbers of
|
||||
// columns, different column names, and column widths.
|
||||
|
@ -108,6 +105,7 @@ void EDA_LIST_DIALOG::initDialog( const wxArrayString& aItemHeaders, const wxStr
|
|||
void EDA_LIST_DIALOG::SetListLabel( const wxString& aLabel )
|
||||
{
|
||||
m_listLabel->SetLabel( aLabel );
|
||||
m_listBox->SetSingleStyle( wxLC_NO_HEADER, true );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -413,6 +413,9 @@ void LIB_EDIT_FRAME::savePartAs()
|
|||
std::vector< wxArrayString > itemsToDisplay;
|
||||
std::vector< wxString > libNicknames = tbl->GetLogicalLibs();
|
||||
|
||||
headers.Add( _( "Nickname" ) );
|
||||
headers.Add( _( "Description" ) );
|
||||
|
||||
for( const auto& name : libNicknames )
|
||||
{
|
||||
wxArrayString item;
|
||||
|
|
|
@ -874,6 +874,9 @@ bool FOOTPRINT_EDIT_FRAME::SaveFootprintAs( MODULE* aModule )
|
|||
std::vector<wxArrayString> itemsToDisplay;
|
||||
std::vector<wxString> nicknames = tbl->GetLogicalLibs();
|
||||
|
||||
headers.Add( _( "Nickname" ) );
|
||||
headers.Add( _( "Description" ) );
|
||||
|
||||
for( const wxString& nickname : nicknames )
|
||||
{
|
||||
wxArrayString item;
|
||||
|
|
Loading…
Reference in New Issue