From 2f7b68ade5f1c9e29bce9eb9ecbcec4296e68635 Mon Sep 17 00:00:00 2001 From: spycrab Date: Tue, 6 Feb 2018 11:06:14 +0100 Subject: [PATCH] Qt/BreakpointWidget: Fix MBP delete --- Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp b/Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp index 80ac714607..a5f6278904 100644 --- a/Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp +++ b/Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp @@ -142,7 +142,10 @@ void BreakpointWidget::Update() for (const auto& mbp : PowerPC::memchecks.GetMemChecks()) { m_table->setRowCount(i + 1); - m_table->setItem(i, 0, create_item(mbp.break_on_hit || mbp.log_on_hit ? tr("on") : QString())); + auto* active = create_item(mbp.break_on_hit || mbp.log_on_hit ? tr("on") : QString()); + active->setData(Qt::UserRole, mbp.start_address); + + m_table->setItem(i, 0, active); m_table->setItem(i, 1, create_item(QStringLiteral("MBP"))); if (g_symbolDB.GetSymbolFromAddr(mbp.start_address))