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())