From 2359d19cf4bcb84f10b58d0dc518507698e76824 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 4 Mar 2020 21:51:39 +0000 Subject: [PATCH] Add menu item to DRC dialog to go to Board Setup / Violation Severities. --- pcbnew/dialogs/dialog_drc.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pcbnew/dialogs/dialog_drc.cpp b/pcbnew/dialogs/dialog_drc.cpp index 2b7b84f619..c90af3eaef 100644 --- a/pcbnew/dialogs/dialog_drc.cpp +++ b/pcbnew/dialogs/dialog_drc.cpp @@ -309,6 +309,10 @@ void DIALOG_DRC_CONTROL::OnDRCItemRClick( wxDataViewEvent& aEvent ) drcItem->GetErrorText() ), _( "Violations will not be checked or reported" ) ); + menu.AppendSeparator(); + + menu.Append( 6, _( "Edit violation severities..." ), _( "Open the Board Setup... dialog" ) ); + switch( GetPopupMenuSelectionFromUser( menu ) ) { case 1: @@ -363,6 +367,10 @@ void DIALOG_DRC_CONTROL::OnDRCItemRClick( wxDataViewEvent& aEvent ) static_cast( aEvent.GetModel() )->SetProvider( m_markersProvider ); updateDisplayedCounts(); break; + + case 6: + m_brdEditor->DoShowBoardSetupDialog( _( "Violation Severity" ) ); + break; } }