diff --git a/common/displlst.cpp b/common/displlst.cpp index f11aad64af..5886cfff68 100644 --- a/common/displlst.cpp +++ b/common/displlst.cpp @@ -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 ); } diff --git a/eeschema/libedit/libedit.cpp b/eeschema/libedit/libedit.cpp index d5872b13c0..77cd1f6e2d 100644 --- a/eeschema/libedit/libedit.cpp +++ b/eeschema/libedit/libedit.cpp @@ -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; diff --git a/pcbnew/footprint_libraries_utils.cpp b/pcbnew/footprint_libraries_utils.cpp index d216823cd0..5c2b9fa094 100644 --- a/pcbnew/footprint_libraries_utils.cpp +++ b/pcbnew/footprint_libraries_utils.cpp @@ -874,6 +874,9 @@ bool FOOTPRINT_EDIT_FRAME::SaveFootprintAs( MODULE* aModule ) std::vector itemsToDisplay; std::vector nicknames = tbl->GetLogicalLibs(); + headers.Add( _( "Nickname" ) ); + headers.Add( _( "Description" ) ); + for( const wxString& nickname : nicknames ) { wxArrayString item;