Default new breakpoints to be enabled in dialog.

This commit is contained in:
mjbudd77 2021-08-03 21:10:56 -04:00
parent 8d7f2032fc
commit d04d08d2e9
1 changed files with 8 additions and 0 deletions

View File

@ -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 );