From 1f7b98bf6bdb91f7dc4520fcbfe62682a7c758bf Mon Sep 17 00:00:00 2001 From: chaoticgd <43898262+chaoticgd@users.noreply.github.com> Date: Sun, 21 Dec 2025 01:13:11 +0000 Subject: [PATCH] Debugger: Allow removing conditions from the breakpoint dialog --- pcsx2-qt/Debugger/Breakpoints/BreakpointDialog.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pcsx2-qt/Debugger/Breakpoints/BreakpointDialog.cpp b/pcsx2-qt/Debugger/Breakpoints/BreakpointDialog.cpp index de993a6844..69176700f7 100644 --- a/pcsx2-qt/Debugger/Breakpoints/BreakpointDialog.cpp +++ b/pcsx2-qt/Debugger/Breakpoints/BreakpointDialog.cpp @@ -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(&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())