Debugger: Allow removing conditions from the breakpoint dialog

This commit is contained in:
chaoticgd
2025-12-21 01:13:11 +00:00
committed by Ty
parent c3a20d421e
commit 1f7b98bf6b

View File

@@ -123,6 +123,11 @@ void BreakpointDialog::accept()
bp->cond.expression = expr;
bp->cond.expressionString = m_ui.txtCondition->text().toStdString();
}
else
{
bp->hasCond = false;
bp->cond = {};
}
}
if (auto* mc = std::get_if<MemCheck>(&m_bp_mc))
{
@@ -159,6 +164,11 @@ void BreakpointDialog::accept()
mc->cond.expression = expr;
mc->cond.expressionString = m_ui.txtCondition->text().toStdString();
}
else
{
mc->hasCond = false;
mc->cond = {};
}
int condition = 0;
if (m_ui.chkRead->isChecked())