Qt/BreakpointWidget: Fix MBP delete

This commit is contained in:
spycrab 2018-02-06 11:06:14 +01:00
parent 920dd0edd0
commit 2f7b68ade5
1 changed files with 4 additions and 1 deletions

View File

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