From fb7925806ca7463c20e81fcbc3106eb99314fc64 Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Mon, 5 Jun 2023 07:40:39 -0400 Subject: [PATCH] Symbol Fields: allow hiding reference column --- eeschema/dialogs/dialog_symbol_fields_table.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/eeschema/dialogs/dialog_symbol_fields_table.cpp b/eeschema/dialogs/dialog_symbol_fields_table.cpp index 3bb25bffbb..93a06adcd6 100644 --- a/eeschema/dialogs/dialog_symbol_fields_table.cpp +++ b/eeschema/dialogs/dialog_symbol_fields_table.cpp @@ -120,20 +120,6 @@ protected: { GRID_TRICKS::doPopupSelection( event ); } - - if( event.GetId() >= GRIDTRICKS_FIRST_SHOWHIDE && event.GetId() < GRIDTRICKS_LAST_ID ) - { - if( !m_grid->IsColShown( REFERENCE_FIELD ) ) - { - DisplayError( m_dlg, _( "The Reference column cannot be hidden." ) ); - - m_grid->ShowCol( REFERENCE_FIELD ); - } - - // Refresh Show checkboxes from grid columns - for( int i = 0; i < m_fieldsCtrl->GetItemCount(); ++i ) - m_fieldsCtrl->SetToggleValue( m_grid->IsColShown( i ), i, 1 ); - } } DIALOG_SHIM* m_dlg;