Skip to content

Commit

Permalink
Merge pull request #9563 from sepalani/bp-changed
Browse files Browse the repository at this point in the history
BreakpointWidget: Emit BreakpointsChanged to update views
  • Loading branch information
leoetlino committed Mar 4, 2021
2 parents be500a9 + ef97712 commit 6c23e16
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp
Expand Up @@ -250,6 +250,7 @@ void BreakpointWidget::OnDelete()
PowerPC::memchecks.Remove(address);
Settings::Instance().blockSignals(false);

emit BreakpointsChanged();
Update();
}

Expand All @@ -261,6 +262,8 @@ void BreakpointWidget::OnClear()
Settings::Instance().blockSignals(false);

m_table->setRowCount(0);

emit BreakpointsChanged();
Update();
}

Expand Down Expand Up @@ -295,6 +298,7 @@ void BreakpointWidget::OnLoad()
Settings::Instance().blockSignals(false);
}

emit BreakpointsChanged();
Update();
}

Expand Down Expand Up @@ -331,6 +335,8 @@ void BreakpointWidget::OnContextMenu()
{
menu->addAction(bp_iter->is_enabled ? tr("Disable") : tr("Enable"), [this, &bp_address]() {
PowerPC::breakpoints.ToggleBreakPoint(bp_address);

emit BreakpointsChanged();
Update();
});
}
Expand All @@ -351,6 +357,8 @@ void BreakpointWidget::OnContextMenu()

menu->addAction(mb_iter->is_enabled ? tr("Disable") : tr("Enable"), [this, &bp_address]() {
PowerPC::memchecks.ToggleBreakPoint(bp_address);

emit BreakpointsChanged();
Update();
});
}
Expand All @@ -371,6 +379,7 @@ void BreakpointWidget::AddBP(u32 addr, bool temp, bool break_on_hit, bool log_on
{
PowerPC::breakpoints.Add(addr, temp, break_on_hit, log_on_hit);

emit BreakpointsChanged();
Update();
}

Expand All @@ -391,6 +400,7 @@ void BreakpointWidget::AddAddressMBP(u32 addr, bool on_read, bool on_write, bool
PowerPC::memchecks.Add(check);
Settings::Instance().blockSignals(false);

emit BreakpointsChanged();
Update();
}

Expand All @@ -411,5 +421,6 @@ void BreakpointWidget::AddRangedMBP(u32 from, u32 to, bool on_read, bool on_writ
PowerPC::memchecks.Add(check);
Settings::Instance().blockSignals(false);

emit BreakpointsChanged();
Update();
}

0 comments on commit 6c23e16

Please sign in to comment.