Sorting is not implemented on LIB_TREE columns.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18101
This commit is contained in:
Jeff Young 2024-05-29 18:45:45 +01:00
parent ec89d2c22e
commit c828deee35
1 changed files with 1 additions and 2 deletions

View File

@ -416,8 +416,7 @@ wxDataViewColumn* LIB_TREE_MODEL_ADAPTER::doAddColumn( const wxString& aHeader,
wxDataViewColumn* col = new wxDataViewColumn(
translatedHeader, new LIB_TREE_RENDERER(), index, m_colWidths[aHeader], wxALIGN_NOT,
wxDATAVIEW_CELL_INERT | static_cast<int>( wxDATAVIEW_COL_RESIZABLE )
| static_cast<int>( wxDATAVIEW_COL_SORTABLE ) );
wxDATAVIEW_CELL_INERT | static_cast<int>( wxDATAVIEW_COL_RESIZABLE ) );
m_widget->AppendColumn( col );
col->SetMinWidth( headerMinWidth.x );