diff --git a/pcbnew/widgets/search_handlers.cpp b/pcbnew/widgets/search_handlers.cpp index d95f03fec2..4eac57c10f 100644 --- a/pcbnew/widgets/search_handlers.cpp +++ b/pcbnew/widgets/search_handlers.cpp @@ -359,3 +359,9 @@ void NETS_SEARCH_HANDLER::SelectItems( std::vector& aItemRows ) m_frame->GetCanvas()->GetView()->UpdateAllLayersColor(); m_frame->GetCanvas()->Refresh(); } + + +void NETS_SEARCH_HANDLER::ActivateItem( long aItemRow ) +{ + m_frame->ShowBoardSetupDialog( _( "Net Classes" ) ); +} diff --git a/pcbnew/widgets/search_handlers.h b/pcbnew/widgets/search_handlers.h index 533cda349a..afa61cb7db 100644 --- a/pcbnew/widgets/search_handlers.h +++ b/pcbnew/widgets/search_handlers.h @@ -93,6 +93,7 @@ public: int Search( const wxString& aQuery ) override; wxString GetResultCell( int aRow, int aCol ) override; void SelectItems( std::vector& aItemRows ) override; + void ActivateItem( long aItemRow ) override; private: std::vector m_hitlist;