From d04d08d2e9ae9d4f8c0b2f49a678f613f4374da0 Mon Sep 17 00:00:00 2001 From: mjbudd77 Date: Tue, 3 Aug 2021 21:10:56 -0400 Subject: [PATCH] Default new breakpoints to be enabled in dialog. --- src/drivers/Qt/ConsoleDebugger.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/drivers/Qt/ConsoleDebugger.cpp b/src/drivers/Qt/ConsoleDebugger.cpp index d3cea993..6d6de6fb 100644 --- a/src/drivers/Qt/ConsoleDebugger.cpp +++ b/src/drivers/Qt/ConsoleDebugger.cpp @@ -1807,6 +1807,9 @@ void ConsoleDebugger::openBpEditWindow( int editIdx, watchpointinfo *wp, bool fo { if ( editIdx < 0 ) { + // If new breakpoint, default enable checkbox to true + ebp->setChecked(true); + // If new breakpoint, suggest condition if in ROM Mapping area of memory. if ( wp->address >= 0x8000 ) { @@ -1834,6 +1837,11 @@ void ConsoleDebugger::openBpEditWindow( int editIdx, watchpointinfo *wp, bool fo name->setText( tr(wp->desc) ); } } + else + { + // If new breakpoint, default enable checkbox to true + ebp->setChecked(true); + } dialog.setLayout( mainLayout );